summaryrefslogtreecommitdiffstats
path: root/views/window/dialog_client_view.cc
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/window/dialog_client_view.cc
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/window/dialog_client_view.cc')
-rw-r--r--views/window/dialog_client_view.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/views/window/dialog_client_view.cc b/views/window/dialog_client_view.cc
index 3dbea55..f0abe6f 100644
--- a/views/window/dialog_client_view.cc
+++ b/views/window/dialog_client_view.cc
@@ -190,8 +190,8 @@ void DialogClientView::SetDefaultButton(NativeTextButton* new_default_button) {
}
}
-void DialogClientView::FocusWillChange(View* focused_before,
- View* focused_now) {
+void DialogClientView::OnWillChangeFocus(View* focused_before,
+ View* focused_now) {
NativeTextButton* new_default_button = NULL;
if (focused_now &&
focused_now->GetClassName() == NativeTextButton::kViewClassName) {
@@ -209,6 +209,10 @@ void DialogClientView::FocusWillChange(View* focused_before,
SetDefaultButton(new_default_button);
}
+void DialogClientView::OnDidChangeFocus(View* focused_before,
+ View* focused_now) {
+}
+
// Changing dialog labels will change button widths.
void DialogClientView::UpdateDialogButtons() {
DialogDelegate* dd = GetDialogDelegate();