summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 00:49:58 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 00:49:58 +0000
commit5ff3666e5e1a62d8ef7fd87324a845ca7b6bb9db (patch)
treedb38533a7422865a66ea330988f68507ba25ce82 /chrome
parentff86264a8d78a11c821492e3f5f8798f2426593d (diff)
downloadchromium_src-5ff3666e5e1a62d8ef7fd87324a845ca7b6bb9db.zip
chromium_src-5ff3666e5e1a62d8ef7fd87324a845ca7b6bb9db.tar.gz
chromium_src-5ff3666e5e1a62d8ef7fd87324a845ca7b6bb9db.tar.bz2
Nothing had the focus by default in the "Clear browsing data"
dialog. Making the Close button the default focused view. BUG=33942 TEST=Open the "Clear browsing data" dialog. The close button should be focused. Review URL: http://codereview.chromium.org/778004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/clear_browsing_data.cc4
-rw-r--r--chrome/browser/views/clear_browsing_data.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/clear_browsing_data.cc b/chrome/browser/views/clear_browsing_data.cc
index d06644d..b87bfdd 100644
--- a/chrome/browser/views/clear_browsing_data.cc
+++ b/chrome/browser/views/clear_browsing_data.cc
@@ -301,6 +301,10 @@ views::View* ClearBrowsingDataView::GetContentsView() {
return this;
}
+views::View* ClearBrowsingDataView::GetInitiallyFocusedView() {
+ return GetDialogClientView()->cancel_button();
+}
+
views::ClientView* ClearBrowsingDataView::CreateClientView(
views::Window* window) {
views::Link* flash_link =
diff --git a/chrome/browser/views/clear_browsing_data.h b/chrome/browser/views/clear_browsing_data.h
index 0030b28..9fedeaf 100644
--- a/chrome/browser/views/clear_browsing_data.h
+++ b/chrome/browser/views/clear_browsing_data.h
@@ -66,6 +66,7 @@ class ClearBrowsingDataView : public views::View,
views::ClientView* CreateClientView(views::Window* window);
virtual views::View* GetExtraView() { return throbber_view_; }
virtual bool GetSizeExtraViewHeightToButtons() { return true; }
+ virtual views::View* GetInitiallyFocusedView();
// Overridden from ComboboxModel:
virtual int GetItemCount();