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

Unified Diff: views/controls/menu/submenu_view.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/submenu_view.cc
===================================================================
--- views/controls/menu/submenu_view.cc (revision 74326)
+++ views/controls/menu/submenu_view.cc (working copy)
@@ -195,11 +195,11 @@
// If the first item isn't entirely visible, make it visible, otherwise make
// the next/previous one entirely visible.
#if defined(OS_WIN)
- int delta = abs(e.GetOffset() / WHEEL_DELTA);
+ int delta = abs(e.offset() / WHEEL_DELTA);
#elif defined(OS_LINUX)
- int delta = abs(e.GetOffset());
+ int delta = abs(e.offset());
#endif
- for (bool scroll_up = (e.GetOffset() > 0); delta != 0; --delta) {
+ for (bool scroll_up = (e.offset() > 0); delta != 0; --delta) {
int scroll_target;
if (scroll_up) {
if (GetMenuItemAt(first_vis_index)->y() == vis_bounds.y()) {

Powered by Google App Engine
This is Rietveld 408576698