summaryrefslogtreecommitdiffstats
path: root/views/controls/scrollbar/native_scroll_bar_gtk.cc
diff options
context:
space:
mode:
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;
}