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

Side by Side Diff: ash/shell.h

Issue 10977088: Fix for Ash shortcuts unexpectedly working in system model dialog (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: adding unit tests 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
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 modalWindowOpen) {
Daniel Erat 2012/10/16 03:03:50 s/modalWindowOpen/modal_window_open/
sschmitz 2012/10/16 18:18:23 Done.
219 simulate_modal_window_open_for_testing_ = modalWindowOpen;
220 }
221
217 // Creates a default views::NonClientFrameView for use by windows in the 222 // Creates a default views::NonClientFrameView for use by windows in the
218 // Ash environment. 223 // Ash environment.
219 views::NonClientFrameView* CreateDefaultNonClientFrameView( 224 views::NonClientFrameView* CreateDefaultNonClientFrameView(
220 views::Widget* widget); 225 views::Widget* widget);
221 226
222 // Rotates focus through containers that can receive focus. 227 // Rotates focus through containers that can receive focus.
223 void RotateFocus(Direction direction); 228 void RotateFocus(Direction direction);
224 229
225 // Sets the work area insets of the display that contains |window|, 230 // Sets the work area insets of the display that contains |window|,
226 // this notifies observers too. 231 // this notifies observers too.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 output_configurator_animation_; 492 output_configurator_animation_;
488 #endif // defined(OS_CHROMEOS) 493 #endif // defined(OS_CHROMEOS)
489 494
490 CursorManager cursor_manager_; 495 CursorManager cursor_manager_;
491 496
492 ObserverList<ShellObserver> observers_; 497 ObserverList<ShellObserver> observers_;
493 498
494 // Used by ash/shell. 499 // Used by ash/shell.
495 content::BrowserContext* browser_context_; 500 content::BrowserContext* browser_context_;
496 501
502 // For testing only: simulate that a modal window is open
503 bool simulate_modal_window_open_for_testing_;
504
497 DISALLOW_COPY_AND_ASSIGN(Shell); 505 DISALLOW_COPY_AND_ASSIGN(Shell);
498 }; 506 };
499 507
500 } // namespace ash 508 } // namespace ash
501 509
502 #endif // ASH_SHELL_H_ 510 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698