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

Unified Diff: views/controls/menu/menu_controller.cc

Issue 6480001: Migrate Event API methods to Google Style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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: views/controls/menu/menu_controller.cc
===================================================================
--- views/controls/menu/menu_controller.cc (revision 74326)
+++ views/controls/menu/menu_controller.cc (working copy)
@@ -523,13 +523,13 @@
// contents of the folder.
if (!part.is_scroll() && part.menu &&
!(part.menu->HasSubmenu() &&
- (event.GetFlags() == MouseEvent::EF_LEFT_BUTTON_DOWN))) {
+ (event.flags() == MouseEvent::EF_LEFT_BUTTON_DOWN))) {
if (active_mouse_view_) {
SendMouseReleaseToActiveView(source, event, false);
return;
}
if (part.menu->GetDelegate()->IsTriggerableEvent(event)) {
- Accept(part.menu, event.GetFlags());
+ Accept(part.menu, event.flags());
return;
}
} else if (part.type == MenuPart::MENU_ITEM) {
@@ -1795,7 +1795,7 @@
MouseEvent mouse_pressed_event(MouseEvent::ET_MOUSE_PRESSED,
target_point.x(), target_point.y(),
- event.GetFlags());
+ event.flags());
active_mouse_view_->OnMousePressed(mouse_pressed_event);
}
}
@@ -1805,7 +1805,7 @@
View::ConvertPointToView(target_menu, active_mouse_view_, &target_point);
MouseEvent mouse_dragged_event(MouseEvent::ET_MOUSE_DRAGGED,
target_point.x(), target_point.y(),
- event.GetFlags());
+ event.flags());
active_mouse_view_->OnMouseDragged(mouse_dragged_event);
}
}
@@ -1821,7 +1821,7 @@
&target_loc);
View::ConvertPointToView(NULL, active_mouse_view_, &target_loc);
MouseEvent release_event(Event::ET_MOUSE_RELEASED, target_loc.x(),
- target_loc.y(), event.GetFlags());
+ target_loc.y(), event.flags());
// Reset the active_mouse_view_ before sending mouse released. That way if if
// calls back to use we aren't in a weird state.
View* active_view = active_mouse_view_;

Powered by Google App Engine
This is Rietveld 408576698