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

Side by Side Diff: ash/wm/window_util.cc

Issue 9817025: Ash: Use right edge of screen to scroll maximized windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/wm/window_util.h ('k') | chrome/browser/ui/views/frame/browser_frame_aura.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) 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 "ash/wm/window_util.h" 5 #include "ash/wm/window_util.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/activation_controller.h" 8 #include "ash/wm/activation_controller.h"
9 #include "ui/aura/client/activation_client.h" 9 #include "ui/aura/client/activation_client.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 void MaximizeWindow(aura::Window* window) { 78 void MaximizeWindow(aura::Window* window) {
79 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); 79 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
80 } 80 }
81 81
82 void RestoreWindow(aura::Window* window) { 82 void RestoreWindow(aura::Window* window) {
83 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL); 83 window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_NORMAL);
84 } 84 }
85 85
86 bool HasFullscreenWindow(const WindowSet& windows) {
87 for (WindowSet::const_iterator i = windows.begin(); i != windows.end(); ++i) {
88 if ((*i)->GetProperty(aura::client::kShowStateKey)
89 == ui::SHOW_STATE_FULLSCREEN) {
90 return true;
91 }
92 }
93 return false;
94 }
95
96 void SetOpenWindowSplit(aura::Window* window, bool value) { 86 void SetOpenWindowSplit(aura::Window* window, bool value) {
97 window->SetProperty(kOpenWindowSplitKey, value); 87 window->SetProperty(kOpenWindowSplitKey, value);
98 } 88 }
99 89
100 bool GetOpenWindowSplit(aura::Window* window) { 90 bool GetOpenWindowSplit(aura::Window* window) {
101 return window->GetProperty(kOpenWindowSplitKey); 91 return window->GetProperty(kOpenWindowSplitKey);
102 } 92 }
103 93
104 } // namespace wm 94 } // namespace wm
105 } // namespace ash 95 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_util.h ('k') | chrome/browser/ui/views/frame/browser_frame_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698