зеркало из https://github.com/mozilla/pjs.git
Allow the editing session to update all command controllers from script; this is needed for MDI in Composer/Nvu and frameset editing.
b=231464, r/sr=dbaron
This commit is contained in:
Родитель
55b3afdfbb
Коммит
579027d2f4
|
@ -102,5 +102,8 @@ interface nsIEditingSession : nsISupports
|
||||||
*/
|
*/
|
||||||
void tearDownEditorOnWindow(in nsIDOMWindow window);
|
void tearDownEditorOnWindow(in nsIDOMWindow window);
|
||||||
|
|
||||||
|
void setEditorOnControllers(in nsIDOMWindow aWindow,
|
||||||
|
in nsIEditor aEditor);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1240,7 +1240,7 @@ nsEditingSession::SetupEditorCommandController(
|
||||||
|
|
||||||
Set the editor on the controller(s) for this window
|
Set the editor on the controller(s) for this window
|
||||||
----------------------------------------------------------------------------*/
|
----------------------------------------------------------------------------*/
|
||||||
nsresult
|
NS_IMETHODIMP
|
||||||
nsEditingSession::SetEditorOnControllers(nsIDOMWindow *aWindow,
|
nsEditingSession::SetEditorOnControllers(nsIDOMWindow *aWindow,
|
||||||
nsIEditor* aEditor)
|
nsIEditor* aEditor)
|
||||||
{
|
{
|
||||||
|
|
|
@ -107,8 +107,7 @@ protected:
|
||||||
nsIDOMWindow *aWindow,
|
nsIDOMWindow *aWindow,
|
||||||
nsISupports *aContext,
|
nsISupports *aContext,
|
||||||
PRUint32 *aControllerId);
|
PRUint32 *aControllerId);
|
||||||
nsresult SetEditorOnControllers(nsIDOMWindow *aWindow,
|
|
||||||
nsIEditor* aEditor);
|
|
||||||
nsresult SetContextOnControllerById(nsIControllers* aControllers,
|
nsresult SetContextOnControllerById(nsIControllers* aControllers,
|
||||||
nsISupports* aContext,
|
nsISupports* aContext,
|
||||||
PRUint32 aID);
|
PRUint32 aID);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче