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::NativeView GetHostView() const OVERRIDE; | 74 virtual gfx::NativeView GetHostView() const OVERRIDE; |
75 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 75 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
76 virtual void AddObserver( | 76 virtual void AddObserver( |
77 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 77 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
78 virtual void RemoveObserver( | 78 virtual void RemoveObserver( |
79 WebContentsModalDialogHostObserver* observer) OVERRIDE; | 79 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
80 | 80 |
81 content::WebContents* web_contents() const { | 81 content::WebContents* web_contents() const { |
82 return shell_window_->web_contents(); | 82 return shell_window_->web_contents(); |
83 } | 83 } |
84 const extensions::Extension* extension() const { | 84 const extensions::Extension* extension() const { |
85 return shell_window_->extension(); | 85 return shell_window_->extension(); |
86 } | 86 } |
87 | 87 |
88 virtual ~NativeAppWindowGtk(); | 88 virtual ~NativeAppWindowGtk(); |
89 | 89 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // The timer used to save the window position for session restore. | 146 // The timer used to save the window position for session restore. |
147 base::OneShotTimer<NativeAppWindowGtk> window_configure_debounce_timer_; | 147 base::OneShotTimer<NativeAppWindowGtk> window_configure_debounce_timer_; |
148 | 148 |
149 // The Extension Keybinding Registry responsible for registering listeners for | 149 // The Extension Keybinding Registry responsible for registering listeners for |
150 // accelerators that are sent to the window, that are destined to be turned | 150 // accelerators that are sent to the window, that are destined to be turned |
151 // into events and sent to the extension. | 151 // into events and sent to the extension. |
152 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 152 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
153 | 153 |
154 // Observers to be notified when any web contents modal dialog requires | 154 // Observers to be notified when any web contents modal dialog requires |
155 // updating its dimensions. | 155 // updating its dimensions. |
156 ObserverList<WebContentsModalDialogHostObserver> observer_list_; | 156 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
157 | 157 |
158 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 158 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
159 }; | 159 }; |
160 | 160 |
161 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 161 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
OLD | NEW |