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

Unified Diff: views/controls/scrollbar/native_scroll_bar_gtk.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/scrollbar/native_scroll_bar_gtk.cc
===================================================================
--- views/controls/scrollbar/native_scroll_bar_gtk.cc (revision 74326)
+++ views/controls/scrollbar/native_scroll_bar_gtk.cc (working copy)
@@ -44,7 +44,7 @@
bool NativeScrollBarGtk::OnKeyPressed(const KeyEvent& event) {
if (!native_view())
return false;
- switch (event.GetKeyCode()) {
+ switch (event.key_code()) {
case ui::VKEY_UP:
if (!native_scroll_bar_->IsHorizontal())
MoveStep(false /* negative */);
@@ -82,7 +82,7 @@
bool NativeScrollBarGtk::OnMouseWheel(const MouseWheelEvent& e) {
if (!native_view())
return false;
- MoveBy(-e.GetOffset()); // e.GetOffset() > 0 means scroll up.
+ MoveBy(-e.offset()); // e.GetOffset() > 0 means scroll up.
return true;
}

Powered by Google App Engine
This is Rietveld 408576698