| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual bool IsFullscreenOrPending() const OVERRIDE; | 63 virtual bool IsFullscreenOrPending() const OVERRIDE; |
| 64 virtual void UpdateWindowIcon() OVERRIDE; | 64 virtual void UpdateWindowIcon() OVERRIDE; |
| 65 virtual void UpdateWindowTitle() OVERRIDE; | 65 virtual void UpdateWindowTitle() OVERRIDE; |
| 66 virtual void HandleKeyboardEvent( | 66 virtual void HandleKeyboardEvent( |
| 67 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 67 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
| 68 virtual void UpdateDraggableRegions( | 68 virtual void UpdateDraggableRegions( |
| 69 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 69 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
| 70 virtual void RenderViewHostChanged() OVERRIDE; | 70 virtual void RenderViewHostChanged() OVERRIDE; |
| 71 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 71 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
| 72 | 72 |
| 73 // WebContentsModalDialogHost implementation. | 73 // web_modal::WebContentsModalDialogHost implementation. |
| 74 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 74 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 75 virtual void AddObserver( | 75 virtual void AddObserver( |
| 76 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 76 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| 77 virtual void RemoveObserver( | 77 virtual void RemoveObserver( |
| 78 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 78 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
| 79 | 79 |
| 80 content::WebContents* web_contents() const { | 80 content::WebContents* web_contents() const { |
| 81 return shell_window_->web_contents(); | 81 return shell_window_->web_contents(); |
| 82 } | 82 } |
| 83 const extensions::Extension* extension() const { | 83 const extensions::Extension* extension() const { |
| 84 return shell_window_->extension(); | 84 return shell_window_->extension(); |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual ~NativeAppWindowGtk(); | 87 virtual ~NativeAppWindowGtk(); |
| 88 | 88 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // The timer used to save the window position for session restore. | 145 // The timer used to save the window position for session restore. |
| 146 base::OneShotTimer<NativeAppWindowGtk> window_configure_debounce_timer_; | 146 base::OneShotTimer<NativeAppWindowGtk> window_configure_debounce_timer_; |
| 147 | 147 |
| 148 // The Extension Keybinding Registry responsible for registering listeners for | 148 // The Extension Keybinding Registry responsible for registering listeners for |
| 149 // accelerators that are sent to the window, that are destined to be turned | 149 // accelerators that are sent to the window, that are destined to be turned |
| 150 // into events and sent to the extension. | 150 // into events and sent to the extension. |
| 151 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 151 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
| 152 | 152 |
| 153 // Observers to be notified when any web contents modal dialog requires | 153 // Observers to be notified when any web contents modal dialog requires |
| 154 // updating its dimensions. | 154 // updating its dimensions. |
| 155 ObserverList<WebContentsModalDialogHostObserver> observer_list_; | 155 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
| 156 | 156 |
| 157 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 157 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 160 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
| OLD | NEW |