| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 15 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
| 16 #include "chrome/browser/ui/sync/one_click_signin_links_delegate.h" | 16 #include "chrome/browser/ui/sync/one_click_signin_links_delegate.h" |
| 17 #include "ui/views/controls/button/button.h" | 17 #include "ui/views/controls/button/button.h" |
| 18 #include "ui/views/controls/link_listener.h" | 18 #include "ui/views/controls/link_listener.h" |
| 19 #include "ui/views/window/dialog_delegate.h" | 19 #include "ui/views/window/dialog_delegate.h" |
| 20 | 20 |
| 21 namespace views { | 21 namespace views { |
| 22 class GridLayout; | |
| 23 class ImageButton; | |
| 24 class LabelButton; | |
| 25 class View; | 22 class View; |
| 26 } | 23 } |
| 27 | 24 |
| 28 // This class allows users to confirm sync signin in cases where signin is | 25 // This class allows users to confirm sync signin in cases where signin is |
| 29 // untrusted. | 26 // untrusted. |
| 30 class OneClickSigninDialogView : public views::DialogDelegateView, | 27 class OneClickSigninDialogView : public views::DialogDelegateView, |
| 31 public views::LinkListener { | 28 public views::LinkListener { |
| 32 public: | 29 public: |
| 33 // Show the one-click signin dialog if not already showing. |start_sync| is | 30 // Show the one-click signin dialog if not already showing. |start_sync| is |
| 34 // called to start sync. | 31 // called to start sync. |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // Link to the Learn More details page | 87 // Link to the Learn More details page |
| 91 views::Link* learn_more_link_; | 88 views::Link* learn_more_link_; |
| 92 | 89 |
| 93 // The bubble, if we're showing one. | 90 // The bubble, if we're showing one. |
| 94 static OneClickSigninDialogView* dialog_view_; | 91 static OneClickSigninDialogView* dialog_view_; |
| 95 | 92 |
| 96 DISALLOW_COPY_AND_ASSIGN(OneClickSigninDialogView); | 93 DISALLOW_COPY_AND_ASSIGN(OneClickSigninDialogView); |
| 97 }; | 94 }; |
| 98 | 95 |
| 99 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_DIALOG_VIEW_H_ | 96 #endif // CHROME_BROWSER_UI_VIEWS_SYNC_ONE_CLICK_SIGNIN_DIALOG_VIEW_H_ |
| OLD | NEW |