OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "apps/native_app_window.h" | 10 #include "apps/native_app_window.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual void UpdateDraggableRegions( | 70 virtual void UpdateDraggableRegions( |
71 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 71 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
72 virtual void RenderViewHostChanged() OVERRIDE; | 72 virtual void RenderViewHostChanged() OVERRIDE; |
73 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 73 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
74 virtual void HideWithApp() OVERRIDE; | 74 virtual void HideWithApp() OVERRIDE; |
75 virtual void ShowWithApp() OVERRIDE; | 75 virtual void ShowWithApp() OVERRIDE; |
76 | 76 |
77 // web_modal::WebContentsModalDialogHost implementation. | 77 // web_modal::WebContentsModalDialogHost implementation. |
78 virtual gfx::NativeView GetHostView() const OVERRIDE; | 78 virtual gfx::NativeView GetHostView() const OVERRIDE; |
79 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 79 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
| 80 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
80 virtual void AddObserver( | 81 virtual void AddObserver( |
81 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 82 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
82 virtual void RemoveObserver( | 83 virtual void RemoveObserver( |
83 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; | 84 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; |
84 | 85 |
85 content::WebContents* web_contents() const { | 86 content::WebContents* web_contents() const { |
86 return shell_window_->web_contents(); | 87 return shell_window_->web_contents(); |
87 } | 88 } |
88 const extensions::Extension* extension() const { | 89 const extensions::Extension* extension() const { |
89 return shell_window_->extension(); | 90 return shell_window_->extension(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 165 |
165 ui::X11AtomCache atom_cache_; | 166 ui::X11AtomCache atom_cache_; |
166 | 167 |
167 // True if we listen for the XEvent. | 168 // True if we listen for the XEvent. |
168 bool is_x_event_listened_; | 169 bool is_x_event_listened_; |
169 | 170 |
170 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 171 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
171 }; | 172 }; |
172 | 173 |
173 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ | 174 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
OLD | NEW |