| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_TAB_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_DIALOGS_H_ |
| 6 #define CHROME_BROWSER_UI_TAB_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_TAB_DIALOGS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Shows or hides the hung renderer dialog. | 52 // Shows or hides the hung renderer dialog. |
| 53 virtual void ShowHungRendererDialog( | 53 virtual void ShowHungRendererDialog( |
| 54 const content::WebContentsUnresponsiveState& unresponsive_state) = 0; | 54 const content::WebContentsUnresponsiveState& unresponsive_state) = 0; |
| 55 virtual void HideHungRendererDialog() = 0; | 55 virtual void HideHungRendererDialog() = 0; |
| 56 | 56 |
| 57 // Shows a dialog asking the user to confirm linking to a managed account. | 57 // Shows a dialog asking the user to confirm linking to a managed account. |
| 58 virtual void ShowProfileSigninConfirmation( | 58 virtual void ShowProfileSigninConfirmation( |
| 59 Browser* browser, | 59 Browser* browser, |
| 60 Profile* profile, | 60 Profile* profile, |
| 61 const std::string& username, | 61 const std::string& username, |
| 62 ui::ProfileSigninConfirmationDelegate* delegate) = 0; | 62 std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate) = 0; |
| 63 | 63 |
| 64 // Shows or hides the ManagePasswords bubble. | 64 // Shows or hides the ManagePasswords bubble. |
| 65 // Pass true for |user_action| if this is a user initiated action. | 65 // Pass true for |user_action| if this is a user initiated action. |
| 66 virtual void ShowManagePasswordsBubble(bool user_action) = 0; | 66 virtual void ShowManagePasswordsBubble(bool user_action) = 0; |
| 67 virtual void HideManagePasswordsBubble() = 0; | 67 virtual void HideManagePasswordsBubble() = 0; |
| 68 | 68 |
| 69 virtual base::WeakPtr<ValidationMessageBubble> ShowValidationMessage( | 69 virtual base::WeakPtr<ValidationMessageBubble> ShowValidationMessage( |
| 70 const gfx::Rect& anchor_in_root_view, | 70 const gfx::Rect& anchor_in_root_view, |
| 71 const base::string16& main_text, | 71 const base::string16& main_text, |
| 72 const base::string16& sub_text) = 0; | 72 const base::string16& sub_text) = 0; |
| 73 | 73 |
| 74 protected: | 74 protected: |
| 75 static const void* UserDataKey(); | 75 static const void* UserDataKey(); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_ | 78 #endif // CHROME_BROWSER_UI_TAB_DIALOGS_H_ |
| OLD | NEW |