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

Unified Diff: ui/views/controls/link.cc

Issue 10912063: events: Get rid of GestureStatus in favour of EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
« no previous file with comments | « ui/views/controls/link.h ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/link.cc
diff --git a/ui/views/controls/link.cc b/ui/views/controls/link.cc
index 63c3fa680e34939701fe1305b7196f2b10967ecd..62e3ac44fb8fea4c2d1d926006272d85c3944311 100644
--- a/ui/views/controls/link.cc
+++ b/ui/views/controls/link.cc
@@ -111,9 +111,9 @@ bool Link::OnKeyPressed(const ui::KeyEvent& event) {
return true;
}
-ui::GestureStatus Link::OnGestureEvent(const ui::GestureEvent& event) {
+ui::EventResult Link::OnGestureEvent(const ui::GestureEvent& event) {
if (!enabled())
- return ui::GESTURE_STATUS_UNKNOWN;
+ return ui::ER_UNHANDLED;
if (event.type() == ui::ET_GESTURE_TAP_DOWN) {
SetPressed(true);
@@ -123,9 +123,9 @@ ui::GestureStatus Link::OnGestureEvent(const ui::GestureEvent& event) {
listener_->LinkClicked(this, event.flags());
} else {
SetPressed(false);
- return ui::GESTURE_STATUS_UNKNOWN;
+ return ui::ER_UNHANDLED;
}
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
}
bool Link::SkipDefaultKeyEventProcessing(const ui::KeyEvent& event) {
« no previous file with comments | « ui/views/controls/link.h ('k') | ui/views/controls/menu/menu_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698