Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: chrome/browser/ui/gtk/apps/native_app_window_gtk.h

Issue 186343002: Create windows for new app window bounds API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void HandleKeyboardEvent( 80 virtual void HandleKeyboardEvent(
81 const content::NativeWebKeyboardEvent& event) OVERRIDE; 81 const content::NativeWebKeyboardEvent& event) OVERRIDE;
82 virtual bool IsFrameless() const OVERRIDE; 82 virtual bool IsFrameless() const OVERRIDE;
83 virtual bool HasFrameColor() const OVERRIDE; 83 virtual bool HasFrameColor() const OVERRIDE;
84 virtual SkColor FrameColor() const OVERRIDE; 84 virtual SkColor FrameColor() const OVERRIDE;
85 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 85 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
86 virtual void HideWithApp() OVERRIDE; 86 virtual void HideWithApp() OVERRIDE;
87 virtual void ShowWithApp() OVERRIDE; 87 virtual void ShowWithApp() OVERRIDE;
88 virtual void UpdateShelfMenu() OVERRIDE; 88 virtual void UpdateShelfMenu() OVERRIDE;
89 // Calls gtk_window_set_geometry_hints with the current size constraints. 89 // Calls gtk_window_set_geometry_hints with the current size constraints.
90 virtual gfx::Size GetMinimumSize() const OVERRIDE; 90 virtual gfx::Size GetContentMinimumSize() const OVERRIDE;
91 virtual void SetMinimumSize(const gfx::Size& size) OVERRIDE; 91 virtual void SetContentMinimumSize(const gfx::Size& size) OVERRIDE;
92 virtual gfx::Size GetMaximumSize() const OVERRIDE; 92 virtual gfx::Size GetContentMaximumSize() const OVERRIDE;
93 virtual void SetMaximumSize(const gfx::Size& size) OVERRIDE; 93 virtual void SetContentMaximumSize(const gfx::Size& size) OVERRIDE;
94 94
95 // web_modal::WebContentsModalDialogHost implementation. 95 // web_modal::WebContentsModalDialogHost implementation.
96 virtual gfx::NativeView GetHostView() const OVERRIDE; 96 virtual gfx::NativeView GetHostView() const OVERRIDE;
97 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 97 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
98 virtual gfx::Size GetMaximumDialogSize() OVERRIDE; 98 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
99 virtual void AddObserver( 99 virtual void AddObserver(
100 web_modal::ModalDialogHostObserver* observer) OVERRIDE; 100 web_modal::ModalDialogHostObserver* observer) OVERRIDE;
101 virtual void RemoveObserver( 101 virtual void RemoveObserver(
102 web_modal::ModalDialogHostObserver* observer) OVERRIDE; 102 web_modal::ModalDialogHostObserver* observer) OVERRIDE;
103 103
(...skipping 20 matching lines...) Expand all
124 CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnMouseMoveEvent, 124 CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnMouseMoveEvent,
125 GdkEventMotion*); 125 GdkEventMotion*);
126 CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnButtonPress, 126 CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnButtonPress,
127 GdkEventButton*); 127 GdkEventButton*);
128 // Callback for PropertyChange XEvents. 128 // Callback for PropertyChange XEvents.
129 CHROMEG_CALLBACK_1(NativeAppWindowGtk, GdkFilterReturn, 129 CHROMEG_CALLBACK_1(NativeAppWindowGtk, GdkFilterReturn,
130 OnXEvent, GdkXEvent*, GdkEvent*); 130 OnXEvent, GdkXEvent*, GdkEvent*);
131 131
132 void OnConfigureDebounced(); 132 void OnConfigureDebounced();
133 133
134 void UpdateWindowMinMaxSize(); 134 void UpdateContentMinMaxSize();
135 135
136 apps::AppWindow* app_window_; // weak - AppWindow owns NativeAppWindow. 136 apps::AppWindow* app_window_; // weak - AppWindow owns NativeAppWindow.
137 137
138 GtkWindow* window_; 138 GtkWindow* window_;
139 GdkWindowState state_; 139 GdkWindowState state_;
140 140
141 // True if the window manager thinks the window is active. Not all window 141 // True if the window manager thinks the window is active. Not all window
142 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case 142 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case
143 // this will always be true. 143 // this will always be true.
144 bool is_active_; 144 bool is_active_;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 ui::X11AtomCache atom_cache_; 196 ui::X11AtomCache atom_cache_;
197 197
198 // True if we listen for the XEvent. 198 // True if we listen for the XEvent.
199 bool is_x_event_listened_; 199 bool is_x_event_listened_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); 201 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk);
202 }; 202 };
203 203
204 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ 204 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm ('k') | chrome/browser/ui/gtk/apps/native_app_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698