diff options
Diffstat (limited to 'views/controls')
-rw-r--r-- | views/controls/scroll_view.cc | 10 | ||||
-rw-r--r-- | views/controls/scroll_view.h | 3 |
2 files changed, 0 insertions, 13 deletions
diff --git a/views/controls/scroll_view.cc b/views/controls/scroll_view.cc index 9db46da..6a2b912 100644 --- a/views/controls/scroll_view.cc +++ b/views/controls/scroll_view.cc @@ -383,16 +383,6 @@ int ScrollView::GetScrollIncrement(ScrollBar* source, bool is_page, return is_horizontal ? viewport_->width() / 5 : viewport_->height() / 5; } -void ScrollView::ViewHierarchyChanged(bool is_add, View *parent, View *child) { - if (is_add) { - RootView* rv = GetRootView(); - if (rv) { - rv->SetDefaultKeyboardHandler(this); - rv->SetFocusOnMousePressed(true); - } - } -} - bool ScrollView::OnKeyPressed(const KeyEvent& event) { bool processed = false; diff --git a/views/controls/scroll_view.h b/views/controls/scroll_view.h index 2a3e8fd..d8ffd15 100644 --- a/views/controls/scroll_view.h +++ b/views/controls/scroll_view.h @@ -72,9 +72,6 @@ class ScrollView : public View, bool is_page, bool is_positive); - // Overridden to setup keyboard ui when the view hierarchy changes - virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); - // Keyboard events virtual bool OnKeyPressed(const KeyEvent& event); virtual bool OnMouseWheel(const MouseWheelEvent& e); |