| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_VIEWS_H
_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_VIEWS_H
_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_VIEWS_H
_ | 6 #define CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_VIEWS_H
_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/profile_chooser_constants.h" | 9 #include "chrome/browser/ui/profile_chooser_constants.h" |
| 10 #include "chrome/browser/ui/signin_view_controller_delegate.h" | 10 #include "chrome/browser/ui/signin_view_controller_delegate.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 views::WebView* content_view, | 40 views::WebView* content_view, |
| 41 Browser* browser, | 41 Browser* browser, |
| 42 bool wait_for_size); | 42 bool wait_for_size); |
| 43 | 43 |
| 44 // Creates the web view that contains the signin flow in |mode| using | 44 // Creates the web view that contains the signin flow in |mode| using |
| 45 // |profile| as the web content's profile, then sets |delegate| as the created | 45 // |profile| as the web content's profile, then sets |delegate| as the created |
| 46 // web content's delegate. | 46 // web content's delegate. |
| 47 static views::WebView* CreateGaiaWebView( | 47 static views::WebView* CreateGaiaWebView( |
| 48 content::WebContentsDelegate* delegate, | 48 content::WebContentsDelegate* delegate, |
| 49 profiles::BubbleViewMode mode, | 49 profiles::BubbleViewMode mode, |
| 50 Profile* profile, | 50 Browser* browser, |
| 51 signin_metrics::AccessPoint access_point); | 51 signin_metrics::AccessPoint access_point); |
| 52 | 52 |
| 53 static views::WebView* CreateSyncConfirmationWebView(Profile* profile); | 53 static views::WebView* CreateSyncConfirmationWebView(Browser* browser); |
| 54 | 54 |
| 55 // views::DialogDelegateView: | 55 // views::DialogDelegateView: |
| 56 views::View* GetContentsView() override; | 56 views::View* GetContentsView() override; |
| 57 views::Widget* GetWidget() override; | 57 views::Widget* GetWidget() override; |
| 58 const views::Widget* GetWidget() const override; | 58 const views::Widget* GetWidget() const override; |
| 59 void DeleteDelegate() override; | 59 void DeleteDelegate() override; |
| 60 ui::ModalType GetModalType() const override; | 60 ui::ModalType GetModalType() const override; |
| 61 bool ShouldShowCloseButton() const override; | 61 bool ShouldShowCloseButton() const override; |
| 62 int GetDialogButtons() const override; | 62 int GetDialogButtons() const override; |
| 63 | 63 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 75 // wait_for_size_ stores whether the dialog should only be shown after its | 75 // wait_for_size_ stores whether the dialog should only be shown after its |
| 76 // content's size has been laid out and measured so that the constrained | 76 // content's size has been laid out and measured so that the constrained |
| 77 // window is sized to the content. | 77 // window is sized to the content. |
| 78 bool wait_for_size_; | 78 bool wait_for_size_; |
| 79 Browser* browser_; | 79 Browser* browser_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateViews); | 81 DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateViews); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_VIEW
S_H_ | 84 #endif // CHROME_BROWSER_UI_VIEWS_PROFILES_SIGNIN_VIEW_CONTROLLER_DELEGATE_VIEW
S_H_ |
| OLD | NEW |