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

Side by Side Diff: ash/shell.h

Issue 13934007: Adding experimental maximize mode (behind a flag) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few self nits 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
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 #ifndef ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Returns the list of containers that match |container_id| in 192 // Returns the list of containers that match |container_id| in
193 // all root windows. If |priority_root| is given, the container 193 // all root windows. If |priority_root| is given, the container
194 // in the |priority_root| will be inserted at the top of the list. 194 // in the |priority_root| will be inserted at the top of the list.
195 static std::vector<aura::Window*> GetContainersFromAllRootWindows( 195 static std::vector<aura::Window*> GetContainersFromAllRootWindows(
196 int container_id, 196 int container_id,
197 aura::RootWindow* priority_root); 197 aura::RootWindow* priority_root);
198 198
199 // True if "launcher per display" feature is enabled. 199 // True if "launcher per display" feature is enabled.
200 static bool IsLauncherPerDisplayEnabled(); 200 static bool IsLauncherPerDisplayEnabled();
201 201
202 // True if an experimental maximize mode is enabled which forces browser and
203 // application windows to be maximized only.
204 static bool IsForcedMaximizeMode();
James Cook 2013/04/22 22:15:46 Either this should be IsForceMaximizeMode() or the
Mr4D (OOO till 08-26) 2013/04/23 04:41:28 Done.
205
202 void set_active_root_window(aura::RootWindow* active_root_window) { 206 void set_active_root_window(aura::RootWindow* active_root_window) {
203 active_root_window_ = active_root_window; 207 active_root_window_ = active_root_window;
204 } 208 }
205 209
206 // Shows the context menu for the background and launcher at 210 // Shows the context menu for the background and launcher at
207 // |location_in_screen| (in screen coordinates). 211 // |location_in_screen| (in screen coordinates).
208 void ShowContextMenu(const gfx::Point& location_in_screen); 212 void ShowContextMenu(const gfx::Point& location_in_screen);
209 213
210 // Toggles the app list. |window| specifies in which display the app 214 // Toggles the app list. |window| specifies in which display the app
211 // list should be shown. If this is NULL, the active root window 215 // list should be shown. If this is NULL, the active root window
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 586
583 // For testing only: simulate that a modal window is open 587 // For testing only: simulate that a modal window is open
584 bool simulate_modal_window_open_for_testing_; 588 bool simulate_modal_window_open_for_testing_;
585 589
586 DISALLOW_COPY_AND_ASSIGN(Shell); 590 DISALLOW_COPY_AND_ASSIGN(Shell);
587 }; 591 };
588 592
589 } // namespace ash 593 } // namespace ash
590 594
591 #endif // ASH_SHELL_H_ 595 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698