Bug 617539 - Integrate nsIFocusManager_MOZILLA_2_0_BRANCH back into the main interface, r=smaug

This commit is contained in:
Benjamin Smedberg 2011-03-25 11:03:33 -04:00
Родитель 2fc61a0c57
Коммит f4cf0abb3d
3 изменённых файлов: 2 добавлений и 11 удалений

Просмотреть файл

@ -57,7 +57,6 @@ struct nsDelayedBlurOrFocusEvent;
*/
class nsFocusManager : public nsIFocusManager,
public nsIFocusManager_MOZILLA_2_0_BRANCH,
public nsIObserver,
public nsSupportsWeakReference
{
@ -67,7 +66,6 @@ public:
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DECL_NSIFOCUSMANAGER
NS_DECL_NSIFOCUSMANAGER_MOZILLA_2_0_BRANCH
// called to initialize and stop the focus manager at startup and shutdown
static nsresult Init();

Просмотреть файл

@ -39,7 +39,7 @@
interface nsIDocument;
interface nsIContent;
[scriptable, uuid(5cb91200-53f6-4d35-989d-1d28ad80a0d4)]
[scriptable, uuid(51db277b-7ee7-4bce-9b84-fd2efcd2c8bd)]
/**
* The focus manager deals with all focus related behaviour. Only one element
* in the entire application may have the focus at a time; this element
@ -261,14 +261,7 @@ interface nsIFocusManager : nsISupports
* Fire any events that have been delayed due to synchronized actions.
*/
[noscript] void fireDelayedEvents(in nsIDocument aDocument);
};
/**
* This interface extends nsIFocusManager for the 2.0 branch
*/
[scriptable, uuid(94a49833-0f6d-4d9b-b859-990546ad9b8d)]
interface nsIFocusManager_MOZILLA_2_0_BRANCH : nsISupports
{
/**
* Indicate that a plugin wishes to take the focus. This is similar to a
* normal focus except that the widget focus is not changed. Updating the

Просмотреть файл

@ -2551,7 +2551,7 @@ nsObjectFrame::HandleEvent(nsPresContext* aPresContext,
return fm->SetFocus(elem, 0);
}
else if (anEvent->message == NS_PLUGIN_FOCUS) {
nsIFocusManager_MOZILLA_2_0_BRANCH* fm = nsFocusManager::GetFocusManager();
nsIFocusManager* fm = nsFocusManager::GetFocusManager();
if (fm)
return fm->FocusPlugin(GetContent());
}