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

Unified Diff: ash/wm/workspace/workspace2.cc

Issue 10916221: Make ToplevelWindowEventFilter and WorkspaceEventFilter into event handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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/wm/workspace/workspace2.h ('k') | ash/wm/workspace/workspace_event_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace2.cc
===================================================================
--- ash/wm/workspace/workspace2.cc (revision 155914)
+++ ash/wm/workspace/workspace2.cc (working copy)
@@ -8,7 +8,7 @@
#include "ash/wm/property_util.h"
#include "ash/wm/window_properties.h"
#include "ash/wm/window_util.h"
-#include "ash/wm/workspace/workspace_event_filter.h"
+#include "ash/wm/workspace/workspace_event_handler.h"
#include "ash/wm/workspace/workspace_manager2.h"
#include "ui/aura/window.h"
@@ -21,7 +21,7 @@
: is_maximized_(is_maximized),
workspace_manager_(manager),
window_(new aura::Window(NULL)),
- event_filter_(new WorkspaceEventFilter(window_)) {
+ event_handler_(new WorkspaceEventHandler(window_)) {
window_->SetProperty(internal::kChildWindowVisibilityChangesAnimatedKey,
true);
window_->set_id(kShellWindowId_WorkspaceContainer);
@@ -31,7 +31,7 @@
window_->layer()->SetMasksToBounds(true);
window_->Hide();
window_->SetParent(parent);
- window_->SetEventFilter(event_filter_);
+ window_->AddPreTargetHandler(event_handler_);
window_->SetProperty(internal::kUsesScreenCoordinatesKey, true);
}
@@ -47,7 +47,7 @@
window_->SetEventFilter(NULL);
aura::Window* window = window_;
window_ = NULL;
- event_filter_ = NULL;
+ event_handler_ = NULL;
return window;
}
« no previous file with comments | « ash/wm/workspace/workspace2.h ('k') | ash/wm/workspace/workspace_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698