summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 21:09:03 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-08 21:09:03 +0000
commitc55afea2eec383549358d934e19b29d78fd4e41b (patch)
tree0c78ca623d268be65012581f6d7aec7e07c954e6 /views
parentd2d89d83b409ef32bcbf7fbafe0d4e33c95515f0 (diff)
downloadchromium_src-c55afea2eec383549358d934e19b29d78fd4e41b.zip
chromium_src-c55afea2eec383549358d934e19b29d78fd4e41b.tar.gz
chromium_src-c55afea2eec383549358d934e19b29d78fd4e41b.tar.bz2
Removing some unused FocusManager related code from RootView.
BUG=None TEST=None Review URL: http://codereview.chromium.org/119312 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/widget/root_view.cc8
-rw-r--r--views/widget/root_view.h17
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_;