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

Side by Side Diff: chrome/browser/ui/webui/signin/signin_email_confirmation_dialog.cc

Issue 2625663003: Layout nits for the signin email confirmation dialog. (Closed)
Patch Set: Nits and use I18nBehavior.i18n Created 3 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
« no previous file with comments | « chrome/browser/resources/signin/signin_shared_css.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/webui/signin/signin_email_confirmation_dialog.h" 5 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_dialog.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h" 12 #include "chrome/browser/ui/webui/signin/signin_email_confirmation_ui.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "chrome/grit/browser_resources.h" 14 #include "chrome/grit/browser_resources.h"
15 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
16 #include "content/public/browser/user_metrics.h" 16 #include "content/public/browser/user_metrics.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/public/browser/web_contents_observer.h" 18 #include "content/public/browser/web_contents_observer.h"
19 #include "content/public/browser/web_ui.h" 19 #include "content/public/browser/web_ui.h"
20 #include "content/public/browser/web_ui_message_handler.h" 20 #include "content/public/browser/web_ui_message_handler.h"
21 #include "ui/base/l10n/l10n_util.h" 21 #include "ui/base/l10n/l10n_util.h"
22 22
23 namespace { 23 namespace {
24 24
25 // Dialog size. 25 // Dialog size.
26 const int kDialogWidth = 448; 26 const int kDialogWidth = 512;
27 const int kDialogMinHeight = 200; 27 const int kDialogMinHeight = 200;
28 const int kDialogMaxHeight = 700; 28 const int kDialogMaxHeight = 700;
29 29
30 // Dialog action key; 30 // Dialog action key;
31 const char kActionKey[] = "action"; 31 const char kActionKey[] = "action";
32 32
33 // Dialog action values. 33 // Dialog action values.
34 const char kActionCancel[] = "cancel"; 34 const char kActionCancel[] = "cancel";
35 const char kActionCreateNewUser[] = "createNewUser"; 35 const char kActionCreateNewUser[] = "createNewUser";
36 const char kActionStartSync[] = "startSync"; 36 const char kActionStartSync[] = "startSync";
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 void SigninEmailConfirmationDialog::OnCloseContents( 188 void SigninEmailConfirmationDialog::OnCloseContents(
189 content::WebContents* source, 189 content::WebContents* source,
190 bool* out_close_dialog) { 190 bool* out_close_dialog) {
191 *out_close_dialog = true; 191 *out_close_dialog = true;
192 } 192 }
193 193
194 bool SigninEmailConfirmationDialog::ShouldShowDialogTitle() const { 194 bool SigninEmailConfirmationDialog::ShouldShowDialogTitle() const {
195 return false; 195 return false;
196 } 196 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/signin/signin_shared_css.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698