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/app_window.h" | 10 #include "apps/app_window.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual void UpdateWindowIcon() OVERRIDE; | 72 virtual void UpdateWindowIcon() OVERRIDE; |
73 virtual void UpdateWindowTitle() OVERRIDE; | 73 virtual void UpdateWindowTitle() OVERRIDE; |
74 virtual void UpdateBadgeIcon() OVERRIDE; | 74 virtual void UpdateBadgeIcon() OVERRIDE; |
75 virtual void UpdateDraggableRegions( | 75 virtual void UpdateDraggableRegions( |
76 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; | 76 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; |
77 virtual SkRegion* GetDraggableRegion() OVERRIDE; | 77 virtual SkRegion* GetDraggableRegion() OVERRIDE; |
78 virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE; | 78 virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE; |
79 virtual void HandleKeyboardEvent( | 79 virtual void HandleKeyboardEvent( |
80 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 80 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
81 virtual bool IsFrameless() const OVERRIDE; | 81 virtual bool IsFrameless() const OVERRIDE; |
| 82 virtual bool HasFrameColor() const OVERRIDE; |
| 83 virtual SkColor FrameColor() const OVERRIDE; |
82 virtual gfx::Insets GetFrameInsets() const OVERRIDE; | 84 virtual gfx::Insets GetFrameInsets() const OVERRIDE; |
83 virtual void HideWithApp() OVERRIDE; | 85 virtual void HideWithApp() OVERRIDE; |
84 virtual void ShowWithApp() OVERRIDE; | 86 virtual void ShowWithApp() OVERRIDE; |
85 // Calls gtk_window_set_geometry_hints with the current size constraints. | 87 // Calls gtk_window_set_geometry_hints with the current size constraints. |
86 virtual void UpdateWindowMinMaxSize() OVERRIDE; | 88 virtual void UpdateWindowMinMaxSize() OVERRIDE; |
87 | 89 |
88 // web_modal::WebContentsModalDialogHost implementation. | 90 // web_modal::WebContentsModalDialogHost implementation. |
89 virtual gfx::NativeView GetHostView() const OVERRIDE; | 91 virtual gfx::NativeView GetHostView() const OVERRIDE; |
90 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; | 92 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; |
91 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; | 93 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 185 |
184 ui::X11AtomCache atom_cache_; | 186 ui::X11AtomCache atom_cache_; |
185 | 187 |
186 // True if we listen for the XEvent. | 188 // True if we listen for the XEvent. |
187 bool is_x_event_listened_; | 189 bool is_x_event_listened_; |
188 | 190 |
189 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 191 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
190 }; | 192 }; |
191 | 193 |
192 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ | 194 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
OLD | NEW |