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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 62 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
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 virtual gfx::Rect GetWindowWorkArea() const OVERRIDE; |
72 | 73 |
73 // web_modal::WebContentsModalDialogHost implementation. | 74 // web_modal::WebContentsModalDialogHost implementation. |
74 virtual gfx::NativeView GetHostView() const OVERRIDE; | 75 virtual gfx::NativeView GetHostView() const OVERRIDE; |
75 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 76 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
76 virtual void AddObserver( | 77 virtual void AddObserver( |
77 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 78 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
78 virtual void RemoveObserver( | 79 virtual void RemoveObserver( |
79 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 80 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
80 | 81 |
81 content::WebContents* web_contents() const { | 82 content::WebContents* web_contents() const { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; | 153 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
153 | 154 |
154 // Observers to be notified when any web contents modal dialog requires | 155 // Observers to be notified when any web contents modal dialog requires |
155 // updating its dimensions. | 156 // updating its dimensions. |
156 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; | 157 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
157 | 158 |
158 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 159 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
159 }; | 160 }; |
160 | 161 |
161 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 162 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ |
OLD | NEW |