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

Side by Side Diff: chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc

Issue 12854008: Implement NativeAppWindowGtk::IsFullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 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 #include "chrome/browser/ui/gtk/extensions/native_app_window_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/native_app_window_gtk.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.h" 9 #include "chrome/browser/ui/gtk/extensions/extension_keybinding_registry_gtk.h"
10 #include "chrome/browser/ui/gtk/gtk_util.h" 10 #include "chrome/browser/ui/gtk/gtk_util.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 bool NativeAppWindowGtk::IsMaximized() const { 151 bool NativeAppWindowGtk::IsMaximized() const {
152 return (state_ & GDK_WINDOW_STATE_MAXIMIZED); 152 return (state_ & GDK_WINDOW_STATE_MAXIMIZED);
153 } 153 }
154 154
155 bool NativeAppWindowGtk::IsMinimized() const { 155 bool NativeAppWindowGtk::IsMinimized() const {
156 return (state_ & GDK_WINDOW_STATE_ICONIFIED); 156 return (state_ & GDK_WINDOW_STATE_ICONIFIED);
157 } 157 }
158 158
159 bool NativeAppWindowGtk::IsFullscreen() const { 159 bool NativeAppWindowGtk::IsFullscreen() const {
160 return false; 160 return (state_ & GDK_WINDOW_STATE_FULLSCREEN);
161 } 161 }
162 162
163 gfx::NativeWindow NativeAppWindowGtk::GetNativeWindow() { 163 gfx::NativeWindow NativeAppWindowGtk::GetNativeWindow() {
164 return window_; 164 return window_;
165 } 165 }
166 166
167 gfx::Rect NativeAppWindowGtk::GetRestoredBounds() const { 167 gfx::Rect NativeAppWindowGtk::GetRestoredBounds() const {
168 gfx::Rect window_bounds = restored_bounds_; 168 gfx::Rect window_bounds = restored_bounds_;
169 window_bounds.Inset(-GetFrameInsets()); 169 window_bounds.Inset(-GetFrameInsets());
170 return window_bounds; 170 return window_bounds;
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 512
513 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions)); 513 draggable_region_.reset(ShellWindow::RawDraggableRegionsToSkRegion(regions));
514 } 514 }
515 515
516 // static 516 // static
517 NativeAppWindow* NativeAppWindow::Create( 517 NativeAppWindow* NativeAppWindow::Create(
518 ShellWindow* shell_window, 518 ShellWindow* shell_window,
519 const ShellWindow::CreateParams& params) { 519 const ShellWindow::CreateParams& params) {
520 return new NativeAppWindowGtk(shell_window, params); 520 return new NativeAppWindowGtk(shell_window, params);
521 } 521 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698