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

Unified Diff: chrome/browser/ui/views/location_bar/star_view.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
Index: chrome/browser/ui/views/location_bar/star_view.cc
diff --git a/chrome/browser/ui/views/location_bar/star_view.cc b/chrome/browser/ui/views/location_bar/star_view.cc
index b844f04123c6011d937cf3a842d1367b83333d39..e94f2fad7f526e18044340600542c697404bc59b 100644
--- a/chrome/browser/ui/views/location_bar/star_view.cc
+++ b/chrome/browser/ui/views/location_bar/star_view.cc
@@ -62,12 +62,12 @@ void StarView::OnMouseReleased(const ui::MouseEvent& event) {
command_updater_->ExecuteCommand(IDC_BOOKMARK_PAGE);
}
-ui::GestureStatus StarView::OnGestureEvent(const ui::GestureEvent& event) {
+ui::EventResult StarView::OnGestureEvent(const ui::GestureEvent& event) {
if (event.type() == ui::ET_GESTURE_TAP) {
command_updater_->ExecuteCommand(IDC_BOOKMARK_PAGE);
- return ui::GESTURE_STATUS_CONSUMED;
+ return ui::ER_CONSUMED;
}
- return ui::GESTURE_STATUS_UNKNOWN;
+ return ui::ER_UNHANDLED;
}
bool StarView::OnKeyPressed(const ui::KeyEvent& event) {
« no previous file with comments | « chrome/browser/ui/views/location_bar/star_view.h ('k') | chrome/browser/ui/views/omnibox/inline_omnibox_popup_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698