diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/widget/root_view.cc | 8 | ||||
-rw-r--r-- | views/widget/root_view.h | 17 |
2 files changed, 0 insertions, 25 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc index df11d3e..f5f57f4 100644 --- a/views/widget/root_view.cc +++ b/views/widget/root_view.cc @@ -70,7 +70,6 @@ RootView::RootView(Widget* widget) previous_cursor_(NULL), #endif default_keyboard_handler_(NULL), - focus_listener_(NULL), focus_on_mouse_pressed_(false), ignore_set_focus_calls_(false), focus_traversable_parent_(NULL), @@ -534,10 +533,6 @@ void RootView::ProcessMouseDragCanceled() { } } -void RootView::SetFocusListener(FocusListener* listener) { - focus_listener_ = listener; -} - void RootView::FocusView(View* view) { if (view != GetFocusedView()) { #if defined(OS_WIN) @@ -549,9 +544,6 @@ void RootView::FocusView(View* view) { View* prev_focused_view = focus_manager->GetFocusedView(); focus_manager->SetFocusedView(view); - - if (focus_listener_) - focus_listener_->FocusChanged(prev_focused_view, view); #else // TODO(port): Port the focus manager and this goes away. NOTIMPLEMENTED(); diff --git a/views/widget/root_view.h b/views/widget/root_view.h index 8f0df1f..2f1e391 100644 --- a/views/widget/root_view.h +++ b/views/widget/root_view.h @@ -21,17 +21,6 @@ class PaintTask; class RootViewDropTarget; class Widget; -//////////////////////////////////////////////////////////////////////////////// -// -// FocusListener Interface -// -//////////////////////////////////////////////////////////////////////////////// -class FocusListener { - public: - virtual void FocusChanged(View* lost_focus, View* got_focus) = 0; -}; - - ///////////////////////////////////////////////////////////////////////////// // // RootView class @@ -151,9 +140,6 @@ class RootView : public View, // Overridden to handle special root view case. virtual bool IsVisibleInRootView() const; - // Sets a listener that receives focus changes events. - void SetFocusListener(FocusListener* listener); - // FocusTraversable implementation. virtual View* FindNextFocusableView(View* starting_view, bool reverse, @@ -308,9 +294,6 @@ class RootView : public View, // Default keyboard handler View* default_keyboard_handler_; - // The listener that gets focus change notifications. - FocusListener* focus_listener_; - // Whether this root view should make our hwnd focused // when an unprocessed mouse press event occurs bool focus_on_mouse_pressed_; |