| Index: chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
|
| diff --git a/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h b/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
|
| index 701675770ba4f5f27cc92593b761a4dd56c65fac..7facadd543d9ee3ccf98a4a67ea740fe7763c733 100644
|
| --- a/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
|
| +++ b/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <gtk/gtk.h>
|
|
|
| +#include "base/observer_list.h"
|
| #include "base/timer.h"
|
| #include "chrome/browser/ui/extensions/native_app_window.h"
|
| #include "chrome/browser/ui/extensions/shell_window.h"
|
| @@ -67,6 +68,13 @@ class NativeAppWindowGtk : public NativeAppWindow,
|
| virtual void RenderViewHostChanged() OVERRIDE;
|
| virtual gfx::Insets GetFrameInsets() const OVERRIDE;
|
|
|
| + // WebContentsModalDialogHost implementation.
|
| + virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
|
| + virtual void AddObserver(
|
| + WebContentsModalDialogHostObserver* observer) OVERRIDE;
|
| + virtual void RemoveObserver(
|
| + WebContentsModalDialogHostObserver* observer) OVERRIDE;
|
| +
|
| content::WebContents* web_contents() const {
|
| return shell_window_->web_contents();
|
| }
|
| @@ -140,6 +148,10 @@ class NativeAppWindowGtk : public NativeAppWindow,
|
| // into events and sent to the extension.
|
| scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_;
|
|
|
| + // Observers to be notified when any web contents modal dialog requires
|
| + // updating its dimensions.
|
| + ObserverList<WebContentsModalDialogHostObserver> observer_list_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk);
|
| };
|
|
|
|
|