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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2176813002: mash: Migrate ShelfTooltipManager to wm common types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add limited pre-target handler WmWindow interface; Move tooltip manager to common. Created 4 years, 5 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
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index f3345f9b71b796f7996e6e73f0d8c68021806c76..c34ff0bda13047eb48ab4d871919a310a73fe53a 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -662,6 +662,14 @@ bool WmWindowAura::HasObserver(const WmWindowObserver* observer) const {
return observers_.HasObserver(observer);
}
+void WmWindowAura::AddLimitedPreTargetHandler(ui::EventHandler* handler) {
+ window_->AddPreTargetHandler(handler);
sky 2016/07/26 13:25:20 This will give different semantics than the mus si
msw 2016/07/26 17:43:25 Added a vague comment, let me know if you have som
+}
+
+void WmWindowAura::RemoveLimitedPreTargetHandler(ui::EventHandler* handler) {
+ window_->RemovePreTargetHandler(handler);
+}
+
void WmWindowAura::OnWindowHierarchyChanging(
const HierarchyChangeParams& params) {
WmWindowObserver::TreeChangeParams wm_params;

Powered by Google App Engine
This is Rietveld 408576698