| Index: chrome/browser/extensions/extension_function_dispatcher.h
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_function_dispatcher.h (revision 34039)
|
| +++ chrome/browser/extensions/extension_function_dispatcher.h (working copy)
|
| @@ -9,6 +9,7 @@
|
| #include <set>
|
| #include <vector>
|
|
|
| +#include "app/gfx/native_widget_types.h"
|
| #include "base/ref_counted.h"
|
| #include "googleurl/src/gurl.h"
|
|
|
| @@ -33,7 +34,12 @@
|
| public:
|
| class Delegate {
|
| public:
|
| - virtual Browser* GetBrowser() = 0;
|
| + virtual Browser* GetBrowser() const = 0;
|
| +
|
| + // Returns the gfx::NativeWindow that contains the view hosting the
|
| + // environment in which the function dispatcher resides.
|
| + virtual gfx::NativeWindow GetFrameNativeWindow();
|
| +
|
| virtual ExtensionHost* GetExtensionHost() { return NULL; }
|
| virtual ExtensionDOMUI* GetExtensionDOMUI() { return NULL; }
|
| };
|
| @@ -94,6 +100,12 @@
|
| // non-tab-hosted extension pages, this will return NULL.
|
| ExtensionDOMUI* GetExtensionDOMUI();
|
|
|
| + // Returns the gfx::NativeWindow that frames the view of the extension
|
| + // containing the function dispatcher. This may return NULL. Refer to the
|
| + // ExtensionFunctionDispatcher::Delegate::GetFrameNativeWindow()
|
| + // implementation for an explanation.
|
| + gfx::NativeWindow GetFrameNativeWindow();
|
| +
|
| // Gets the extension the function is being invoked by. This should not ever
|
| // return NULL.
|
| Extension* GetExtension();
|
|
|