summaryrefslogtreecommitdiffstats
path: root/views/controls/scrollbar/native_scroll_bar_gtk.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 23:28:06 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-09 23:28:06 +0000
commite2e88e7f5dbcbb2367d632b534ca0e75aab9f25c (patch)
tree05402030dd11561f128734a8df6e2e6a848fc366 /views/controls/scrollbar/native_scroll_bar_gtk.cc
parent6e472da04f540d7837b7a344383869013bc57a3d (diff)
downloadchromium_src-e2e88e7f5dbcbb2367d632b534ca0e75aab9f25c.zip
chromium_src-e2e88e7f5dbcbb2367d632b534ca0e75aab9f25c.tar.gz
chromium_src-e2e88e7f5dbcbb2367d632b534ca0e75aab9f25c.tar.bz2
Migrate Event API methods to Google Style.
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6480001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/scrollbar/native_scroll_bar_gtk.cc')
-rw-r--r--views/controls/scrollbar/native_scroll_bar_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/scrollbar/native_scroll_bar_gtk.cc b/views/controls/scrollbar/native_scroll_bar_gtk.cc
index 73bb109..dc1a9b6 100644
--- a/views/controls/scrollbar/native_scroll_bar_gtk.cc
+++ b/views/controls/scrollbar/native_scroll_bar_gtk.cc
@@ -44,7 +44,7 @@ gfx::Size NativeScrollBarGtk::GetPreferredSize() {
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::OnKeyPressed(const KeyEvent& event) {
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;
}