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

Unified Diff: ui/events/event_target.h

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 (more comments in ui/views/, test) 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
Index: ui/events/event_target.h
diff --git a/ui/events/event_target.h b/ui/events/event_target.h
index e8b14a6445851b3a5b2e00a9c5dae39c0a79da2e..21a84a4db6da1c7a211d2ebed3fcdc31a368ab97 100644
--- a/ui/events/event_target.h
+++ b/ui/events/event_target.h
@@ -77,9 +77,8 @@ class EVENTS_EXPORT EventTarget : public EventHandler {
// Returns true if the event pre target list is empty.
bool IsPreTargetListEmpty() const;
- void set_target_handler(EventHandler* handler) {
- target_handler_ = handler;
- }
+ // Sets |target_handler| as |target_handler_| and returns the old handler.
+ EventHandler* SetTargetHandler(EventHandler* target_handler);
protected:
EventHandler* target_handler() { return target_handler_; }

Powered by Google App Engine
This is Rietveld 408576698