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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ash/multi_user/multi_user_warning_dialog.h" 5 #include "chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "grit/generated_resources.h" 8 #include "chrome/grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/views/controls/button/checkbox.h" 11 #include "ui/views/controls/button/checkbox.h"
12 #include "ui/views/controls/label.h" 12 #include "ui/views/controls/label.h"
13 #include "ui/views/layout/grid_layout.h" 13 #include "ui/views/layout/grid_layout.h"
14 #include "ui/views/widget/widget.h" 14 #include "ui/views/widget/widget.h"
15 #include "ui/views/window/dialog_delegate.h" 15 #include "ui/views/window/dialog_delegate.h"
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 namespace { 19 namespace {
20 20
21 // Default width/height of the dialog. 21 // Default width/height of the dialog.
22 const int kDefaultWidth = 600; 22 const int kDefaultWidth = 600;
23 const int kDefaultHeight = 250; 23 const int kDefaultHeight = 250;
24 24
25 const int kPaddingToMessage = 30; 25 const int kPaddingToMessage = 30;
26 const int kPaddingToCheckBox = 50; 26 const int kPaddingToCheckBox = 50;
27 const int kInset = 40; 27 const int kInset = 40;
28 const int kTopInset = 10; 28 const int kTopInset = 10;
29 29
30 //////////////////////////////////////////////////////////////////////////////// 30 ////////////////////////////////////////////////////////////////////////////////
31 // Dialog for multi-profiles teleport warning. 31 // Dialog for multi-profiles teleport warning.
32 class TeleportWarningView : public views::DialogDelegateView { 32 class TeleportWarningView : public views::DialogDelegateView {
33 public: 33 public:
34 TeleportWarningView(base::Callback<void(bool)> on_accept); 34 explicit TeleportWarningView(base::Callback<void(bool)> on_accept);
35 virtual ~TeleportWarningView(); 35 virtual ~TeleportWarningView();
36 36
37 static void ShowDialog(const base::Callback<void(bool)> on_accept); 37 static void ShowDialog(const base::Callback<void(bool)> on_accept);
38 38
39 // views::DialogDelegate overrides. 39 // views::DialogDelegate overrides.
40 virtual bool Accept() OVERRIDE; 40 virtual bool Accept() OVERRIDE;
41 41
42 // views::WidgetDelegate overrides. 42 // views::WidgetDelegate overrides.
43 virtual ui::ModalType GetModalType() const OVERRIDE; 43 virtual ui::ModalType GetModalType() const OVERRIDE;
44 44
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 SetLayoutManager(grid_layout); 149 SetLayoutManager(grid_layout);
150 Layout(); 150 Layout();
151 } 151 }
152 152
153 } // namespace 153 } // namespace
154 154
155 //////////////////////////////////////////////////////////////////////////////// 155 ////////////////////////////////////////////////////////////////////////////////
156 // Factory function. 156 // Factory function.
157 157
158 void ShowMultiprofilesWarningDialog( 158 void ShowMultiprofilesWarningDialog(
159 const base::Callback<void(bool)> on_accept) { 159 const base::Callback<void(bool)> on_accept) {
160 TeleportWarningView::ShowDialog(on_accept); 160 TeleportWarningView::ShowDialog(on_accept);
161 } 161 }
162 162
163 } // namespace chromeos 163 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698