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

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 (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_processor_unittest.cc ('k') | ui/events/event_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_; }
« no previous file with comments | « ui/events/event_processor_unittest.cc ('k') | ui/events/event_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698