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

Unified 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: impl. of review comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/accelerators/accelerator_table_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 2f08927ccab2034a515ff1cb8a4bf41642431dee..dbcc2fd70555503dfd99732569a1f805810146c2 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -214,6 +214,11 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate{
// Returns true if a modal dialog window is currently open.
bool IsModalWindowOpen() const;
+ // For testing only: set simulation that a modal window is open
+ void SimulateModalWindowOpenForTesting(bool modal_window_open) {
+ simulate_modal_window_open_for_testing_ = modal_window_open;
+ }
+
// Creates a default views::NonClientFrameView for use by windows in the
// Ash environment.
views::NonClientFrameView* CreateDefaultNonClientFrameView(
@@ -494,6 +499,9 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate{
// Used by ash/shell.
content::BrowserContext* browser_context_;
+ // For testing only: simulate that a modal window is open
+ bool simulate_modal_window_open_for_testing_;
+
DISALLOW_COPY_AND_ASSIGN(Shell);
};
« 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