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

Side by Side Diff: chrome/browser/ui/views/profiles/signin_view_controller_delegate_views.cc

Issue 1868273002: Enhanced Sync Confirmation modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dan's comments + rebase Created 4 years, 8 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
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/views/profiles/signin_view_controller_delegate_views .h" 5 #include "chrome/browser/ui/views/profiles/signin_view_controller_delegate_views .h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 9 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
10 #include "chrome/browser/signin/signin_promo.h" 10 #include "chrome/browser/signin/signin_promo.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "components/constrained_window/constrained_window_views.h" 14 #include "components/constrained_window/constrained_window_views.h"
15 #include "components/signin/core/common/profile_management_switches.h" 15 #include "components/signin/core/common/profile_management_switches.h"
16 #include "content/public/browser/render_widget_host_view.h" 16 #include "content/public/browser/render_widget_host_view.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "ui/views/controls/webview/webview.h" 18 #include "ui/views/controls/webview/webview.h"
19 #include "ui/views/widget/widget.h" 19 #include "ui/views/widget/widget.h"
20 20
21 const int kPasswordCombinedFixedGaiaViewHeight = 440; 21 const int kPasswordCombinedFixedGaiaViewHeight = 440;
22 const int kPasswordCombinedFixedGaiaViewWidth = 360; 22 const int kPasswordCombinedFixedGaiaViewWidth = 360;
23 const int kFixedGaiaViewHeight = 612; 23 const int kFixedGaiaViewHeight = 612;
24 const int kModalDialogWidth = 448; 24 const int kModalDialogWidth = 448;
25 const int kSyncConfirmationDialogHeight = 351; 25 const int kSyncConfirmationDialogHeight = 487;
26 26
27 SigninViewControllerDelegateViews::SigninViewControllerDelegateViews( 27 SigninViewControllerDelegateViews::SigninViewControllerDelegateViews(
28 SigninViewController* signin_view_controller, 28 SigninViewController* signin_view_controller,
29 views::WebView* content_view, 29 views::WebView* content_view,
30 Browser* browser, 30 Browser* browser,
31 bool wait_for_size) 31 bool wait_for_size)
32 : SigninViewControllerDelegate(signin_view_controller, 32 : SigninViewControllerDelegate(signin_view_controller,
33 content_view->GetWebContents()), 33 content_view->GetWebContents()),
34 content_view_(content_view), 34 content_view_(content_view),
35 modal_signin_widget_(nullptr), 35 modal_signin_widget_(nullptr),
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 SigninViewControllerDelegate* 149 SigninViewControllerDelegate*
150 SigninViewControllerDelegate::CreateSyncConfirmationDelegate( 150 SigninViewControllerDelegate::CreateSyncConfirmationDelegate(
151 SigninViewController* signin_view_controller, 151 SigninViewController* signin_view_controller,
152 Browser* browser) { 152 Browser* browser) {
153 return new SigninViewControllerDelegateViews( 153 return new SigninViewControllerDelegateViews(
154 signin_view_controller, 154 signin_view_controller,
155 SigninViewControllerDelegateViews::CreateSyncConfirmationWebView( 155 SigninViewControllerDelegateViews::CreateSyncConfirmationWebView(
156 browser->profile()), 156 browser->profile()),
157 browser, true); 157 browser, true);
158 } 158 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_starter.cc ('k') | chrome/browser/ui/webui/options/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698