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

Side by Side Diff: chrome/browser/gtk/browser_window_gtk.h

Issue 159087: Change fullscreen mode to be determined by the window manager. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GTK_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 // Checks to see if the mouse pointer at |x|, |y| is over the border of the 265 // Checks to see if the mouse pointer at |x|, |y| is over the border of the
266 // custom frame (a spot that should trigger a window resize). Returns true if 266 // custom frame (a spot that should trigger a window resize). Returns true if
267 // it should and sets |edge|. 267 // it should and sets |edge|.
268 bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); 268 bool GetWindowEdge(int x, int y, GdkWindowEdge* edge);
269 269
270 NotificationRegistrar registrar_; 270 NotificationRegistrar registrar_;
271 271
272 gfx::Rect bounds_; 272 gfx::Rect bounds_;
273 GdkWindowState state_; 273 GdkWindowState state_;
274 274
275 // Whether we are full screen. Since IsFullscreen() gets called before
276 // OnStateChanged(), we can't rely on |state_| & GDK_WINDOW_STATE_FULLSCREEN.
277 bool full_screen_;
278
279 // The container for the titlebar + tab strip. 275 // The container for the titlebar + tab strip.
280 scoped_ptr<BrowserTitlebar> titlebar_; 276 scoped_ptr<BrowserTitlebar> titlebar_;
281 277
282 // The object that manages all of the widgets in the toolbar. 278 // The object that manages all of the widgets in the toolbar.
283 scoped_ptr<BrowserToolbarGtk> toolbar_; 279 scoped_ptr<BrowserToolbarGtk> toolbar_;
284 280
285 // The object that manages the bookmark bar. 281 // The object that manages the bookmark bar.
286 scoped_ptr<BookmarkBarGtk> bookmark_bar_; 282 scoped_ptr<BookmarkBarGtk> bookmark_bar_;
287 283
288 // The object that manages the extension shelf. 284 // The object that manages the extension shelf.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 328
333 // True if the window manager thinks the window is active. Not all window 329 // True if the window manager thinks the window is active. Not all window
334 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case 330 // managers keep track of this state (_NET_ACTIVE_WINDOW), in which case
335 // this will always be true. 331 // this will always be true.
336 bool is_active_; 332 bool is_active_;
337 333
338 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 334 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
339 }; 335 };
340 336
341 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ 337 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698