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

Side by Side Diff: ash/shell.h

Issue 11192016: Revert 162240 - See also: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/accelerators/accelerator_table_unittest.cc ('k') | ash/shell.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 #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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Returns app list window or NULL if it is not visible. 208 // Returns app list window or NULL if it is not visible.
209 aura::Window* GetAppListWindow(); 209 aura::Window* GetAppListWindow();
210 210
211 // Returns true if the screen is locked. 211 // Returns true if the screen is locked.
212 bool IsScreenLocked() const; 212 bool IsScreenLocked() const;
213 213
214 // Returns true if a modal dialog window is currently open. 214 // Returns true if a modal dialog window is currently open.
215 bool IsModalWindowOpen() const; 215 bool IsModalWindowOpen() const;
216 216
217 // For testing only: set simulation that a modal window is open
218 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
219 simulate_modal_window_open_for_testing_ = modal_window_open;
220 }
221
222 // Creates a default views::NonClientFrameView for use by windows in the 217 // Creates a default views::NonClientFrameView for use by windows in the
223 // Ash environment. 218 // Ash environment.
224 views::NonClientFrameView* CreateDefaultNonClientFrameView( 219 views::NonClientFrameView* CreateDefaultNonClientFrameView(
225 views::Widget* widget); 220 views::Widget* widget);
226 221
227 // Rotates focus through containers that can receive focus. 222 // Rotates focus through containers that can receive focus.
228 void RotateFocus(Direction direction); 223 void RotateFocus(Direction direction);
229 224
230 // Sets the work area insets of the display that contains |window|, 225 // Sets the work area insets of the display that contains |window|,
231 // this notifies observers too. 226 // this notifies observers too.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 output_configurator_animation_; 487 output_configurator_animation_;
493 #endif // defined(OS_CHROMEOS) 488 #endif // defined(OS_CHROMEOS)
494 489
495 CursorManager cursor_manager_; 490 CursorManager cursor_manager_;
496 491
497 ObserverList<ShellObserver> observers_; 492 ObserverList<ShellObserver> observers_;
498 493
499 // Used by ash/shell. 494 // Used by ash/shell.
500 content::BrowserContext* browser_context_; 495 content::BrowserContext* browser_context_;
501 496
502 // For testing only: simulate that a modal window is open
503 bool simulate_modal_window_open_for_testing_;
504
505 DISALLOW_COPY_AND_ASSIGN(Shell); 497 DISALLOW_COPY_AND_ASSIGN(Shell);
506 }; 498 };
507 499
508 } // namespace ash 500 } // namespace ash
509 501
510 #endif // ASH_SHELL_H_ 502 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698