summaryrefslogtreecommitdiffstats
path: root/views/focus/focus_manager.h
diff options
context:
space:
mode:
authoralicet@chromium.org <alicet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 19:59:52 +0000
committeralicet@chromium.org <alicet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-10 19:59:52 +0000
commit2a7f5ae1c146e8e726a15d2422eb7d6022daefed (patch)
tree0aa3fc6c128caf7553308aeb03a3cb63d9fa569b /views/focus/focus_manager.h
parent2fb4e7cd82637c40a4f99b95340c7ddaf85a5309 (diff)
downloadchromium_src-2a7f5ae1c146e8e726a15d2422eb7d6022daefed.zip
chromium_src-2a7f5ae1c146e8e726a15d2422eb7d6022daefed.tar.gz
chromium_src-2a7f5ae1c146e8e726a15d2422eb7d6022daefed.tar.bz2
Add DidChangeFocus to FocusChangeListener.
Rename FocusChangeListener interface to OnWillChangeFocus and OnDidChangeFocus Move location bar focus interaction from AccessibilityPaneView to ToolBarView. BUG=101940 TEST=None Review URL: http://codereview.chromium.org/8416058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/focus/focus_manager.h')
-rw-r--r--views/focus/focus_manager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/views/focus/focus_manager.h b/views/focus/focus_manager.h
index 484e441..0fa5139 100644
--- a/views/focus/focus_manager.h
+++ b/views/focus/focus_manager.h
@@ -99,10 +99,13 @@ class VIEWS_EXPORT FocusTraversable {
// This interface should be implemented by classes that want to be notified when
// the focus is about to change. See the Add/RemoveFocusChangeListener methods.
-// No change to focus state has occurred yet when this function is called.
class VIEWS_EXPORT FocusChangeListener {
public:
- virtual void FocusWillChange(View* focused_before, View* focused_now) = 0;
+ // No change to focus state has occurred yet when this function is called.
+ virtual void OnWillChangeFocus(View* focused_before, View* focused_now) = 0;
+
+ // Called after focus state has changed.
+ virtual void OnDidChangeFocus(View* focused_before, View* focused_now) = 0;
protected:
virtual ~FocusChangeListener() {}