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

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 (simplify MenuButton) 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..78e39fe552826ff3b8771add01b093d62059862e 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 its original value.
+ EventHandler* SetTargetHandler(EventHandler* target_handler);
protected:
EventHandler* target_handler() { return target_handler_; }

Powered by Google App Engine
This is Rietveld 408576698