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

Unified Diff: ash/shell.cc

Issue 25445002: Ensure that in Desktop AURA the WindowModalityController class is at the head of the event pre targ… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 | « no previous file | ui/events/event_target.h » ('j') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
===================================================================
--- ash/shell.cc (revision 226033)
+++ ash/shell.cc (working copy)
@@ -194,7 +194,6 @@
// messages don't have a target window.
base::MessagePumpX11::Current()->AddObserver(output_configurator());
#endif // defined(OS_CHROMEOS)
- AddPreTargetHandler(this);
#if defined(OS_CHROMEOS)
internal::PowerStatus::Initialize();
@@ -216,7 +215,6 @@
RemovePreTargetHandler(user_activity_detector_.get());
RemovePreTargetHandler(overlay_filter_.get());
RemovePreTargetHandler(input_method_filter_.get());
- RemovePreTargetHandler(window_modality_controller_.get());
if (mouse_cursor_filter_)
RemovePreTargetHandler(mouse_cursor_filter_.get());
RemovePreTargetHandler(system_gesture_filter_.get());
@@ -429,6 +427,11 @@
// Launcher, and WallPaper could be created by the factory.
views::FocusManagerFactory::Install(new AshFocusManagerFactory);
+ window_modality_controller_.reset(
sky 2013/10/02 15:54:12 Add comment that order is important here.
ananta 2013/10/02 17:46:55 Done.
+ new views::corewm::WindowModalityController(this));
+
+ AddPreTargetHandler(this);
+
env_filter_.reset(new views::corewm::CompoundEventFilter);
AddPreTargetHandler(env_filter_.get());
@@ -510,9 +513,6 @@
// RootWindowController as possible.
visibility_controller_.reset(new AshVisibilityController);
user_action_client_.reset(delegate_->CreateUserActionClient());
- window_modality_controller_.reset(
- new views::corewm::WindowModalityController);
- AddPreTargetHandler(window_modality_controller_.get());
magnification_controller_.reset(
MagnificationController::CreateInstance());
« no previous file with comments | « no previous file | ui/events/event_target.h » ('j') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698