Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(131)

Side by Side Diff: chrome/browser/ui/views/clear_data_view.cc

Issue 6382009: views: Move grid_layout files into layout directory. Final Part. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/clear_data_view.h" 5 #include "chrome/browser/ui/views/clear_data_view.h"
6 6
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_window.h" 9 #include "chrome/browser/browser_window.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/search_engines/template_url_model.h" 11 #include "chrome/browser/search_engines/template_url_model.h"
12 #include "chrome/browser/ui/views/clear_browsing_data.h" 12 #include "chrome/browser/ui/views/clear_browsing_data.h"
13 #include "chrome/browser/ui/views/clear_server_data.h" 13 #include "chrome/browser/ui/views/clear_server_data.h"
14 #include "gfx/insets.h" 14 #include "gfx/insets.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "grit/locale_settings.h" 16 #include "grit/locale_settings.h"
17 #include "net/url_request/url_request_context.h" 17 #include "net/url_request/url_request_context.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 #include "views/background.h" 19 #include "views/background.h"
20 #include "views/controls/button/checkbox.h" 20 #include "views/controls/button/checkbox.h"
21 #include "views/controls/label.h" 21 #include "views/controls/label.h"
22 #include "views/controls/separator.h" 22 #include "views/controls/separator.h"
23 #include "views/controls/throbber.h" 23 #include "views/controls/throbber.h"
24 #include "views/grid_layout.h" 24 #include "views/layout/grid_layout.h"
25 #include "views/layout/layout_constants.h" 25 #include "views/layout/layout_constants.h"
26 #include "views/widget/widget.h" 26 #include "views/widget/widget.h"
27 #include "views/window/dialog_client_view.h" 27 #include "views/window/dialog_client_view.h"
28 #include "views/window/window.h" 28 #include "views/window/window.h"
29 29
30 using views::GridLayout; 30 using views::GridLayout;
31 31
32 // The combo box is vertically aligned to the 'time-period' label, which makes 32 // The combo box is vertically aligned to the 'time-period' label, which makes
33 // the combo box look a little too close to the check box above it when we use 33 // the combo box look a little too close to the check box above it when we use
34 // standard layout to separate them. We therefore add a little extra margin to 34 // standard layout to separate them. We therefore add a little extra margin to
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_CLEAR_BROWSING_DATA_TITLE)); 164 return UTF16ToWide(l10n_util::GetStringUTF16(IDS_CLEAR_BROWSING_DATA_TITLE));
165 } 165 }
166 166
167 views::View* ClearDataView::GetContentsView() { 167 views::View* ClearDataView::GetContentsView() {
168 return this; 168 return this;
169 } 169 }
170 170
171 views::View* ClearDataView::GetInitiallyFocusedView() { 171 views::View* ClearDataView::GetInitiallyFocusedView() {
172 return GetDialogClientView()->cancel_button(); 172 return GetDialogClientView()->cancel_button();
173 } 173 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/clear_browsing_data_view.cc ('k') | chrome/browser/ui/views/clear_server_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698