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

Unified Diff: ash/wm/system_modal_container_layout_manager.cc

Issue 10960015: aura: Start converting event-filters into event-handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 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 | « ash/shell.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/system_modal_container_layout_manager.cc
diff --git a/ash/wm/system_modal_container_layout_manager.cc b/ash/wm/system_modal_container_layout_manager.cc
index b292fcd41f139d85e7a2b26c384dca30b2d630f3..3985c72624449d20e5852c9a9f20ec53d49f1613 100644
--- a/ash/wm/system_modal_container_layout_manager.cc
+++ b/ash/wm/system_modal_container_layout_manager.cc
@@ -15,6 +15,7 @@
#include "ui/aura/client/aura_constants.h"
#include "ui/aura/client/capture_client.h"
#include "ui/aura/root_window.h"
+#include "ui/aura/shared/compound_event_filter.h"
#include "ui/aura/window.h"
#include "ui/base/events/event.h"
#include "ui/compositor/layer.h"
@@ -200,7 +201,7 @@ void SystemModalContainerLayoutManager::CreateModalScreen() {
modal_screen_->SetContentsView(new ScreenView);
modal_screen_->GetNativeView()->layer()->SetOpacity(0.0f);
- Shell::GetInstance()->AddEnvEventFilter(modality_filter_.get());
+ Shell::GetInstance()->env_filter()->AddFilter(modality_filter_.get());
}
ui::ScopedLayerAnimationSettings settings(
@@ -211,7 +212,7 @@ void SystemModalContainerLayoutManager::CreateModalScreen() {
}
void SystemModalContainerLayoutManager::DestroyModalScreen() {
- Shell::GetInstance()->RemoveEnvEventFilter(modality_filter_.get());
+ Shell::GetInstance()->env_filter()->RemoveFilter(modality_filter_.get());
// modal_screen_ can be NULL when a root window is shutting down
// and OnWindowDestroying is called first.
if (modal_screen_) {
« no previous file with comments | « ash/shell.cc ('k') | ui/aura/env.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698