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

Unified Diff: ui/events/event_target.cc

Issue 1411833006: Refactoring to make adding ink drop animations easier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor ink drop animations (nits in ui/views/ Created 5 years, 1 month 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 | « ui/events/event_target.h ('k') | ui/views/animation/button_ink_drop_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_target.cc
diff --git a/ui/events/event_target.cc b/ui/events/event_target.cc
index 9b44f9a74afa96c8fba6c883ce2acfd365a39a87..2e0721936d979e411fa379a44fcc451891f0247b 100644
--- a/ui/events/event_target.cc
+++ b/ui/events/event_target.cc
@@ -56,6 +56,12 @@ bool EventTarget::IsPreTargetListEmpty() const {
return pre_target_list_.empty();
}
+EventHandler* EventTarget::SetTargetHandler(EventHandler* target_handler) {
+ EventHandler* original_target_handler = target_handler_;
+ target_handler_ = target_handler;
+ return original_target_handler;
+}
+
void EventTarget::OnEvent(Event* event) {
CHECK_EQ(this, event->target());
if (target_handler_)
« no previous file with comments | « ui/events/event_target.h ('k') | ui/views/animation/button_ink_drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698