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_VIEWS_TAB_DIALOGS_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/tab_dialogs.h" | 9 #include "chrome/browser/ui/tab_dialogs.h" |
10 | 10 |
11 // Views implementation of TabDialogs interface. | 11 // Views implementation of TabDialogs interface. |
12 class TabDialogsViews : public TabDialogs { | 12 class TabDialogsViews : public TabDialogs { |
13 public: | 13 public: |
14 explicit TabDialogsViews(content::WebContents* contents); | 14 explicit TabDialogsViews(content::WebContents* contents); |
15 ~TabDialogsViews() override; | 15 ~TabDialogsViews() override; |
16 | 16 |
17 // TabDialogs: | 17 // TabDialogs: |
18 void ShowCollectedCookies() override; | 18 void ShowCollectedCookies() override; |
19 void ShowHungRendererDialog() override; | 19 void ShowHungRendererDialog() override; |
20 void HideHungRendererDialog() override; | 20 void HideHungRendererDialog() override; |
21 void ShowProfileSigninConfirmation( | 21 void ShowProfileSigninConfirmation( |
22 Browser* browser, | 22 Browser* browser, |
23 Profile* profile, | 23 Profile* profile, |
24 const std::string& username, | 24 const std::string& username, |
25 ui::ProfileSigninConfirmationDelegate* delegate) override; | 25 ui::ProfileSigninConfirmationDelegate* delegate) override; |
26 void ShowManagePasswordsBubble(bool user_action) override; | 26 void ShowManagePasswordsBubble(bool user_action) override; |
27 void HideManagePasswordsBubble() override; | 27 void HideManagePasswordsBubble() override; |
| 28 scoped_ptr<ValidationMessageBubble> ShowValidationMessage( |
| 29 const gfx::Rect& anchor_in_root_view, |
| 30 const base::string16& main_text, |
| 31 const base::string16& sub_text) override; |
28 | 32 |
29 private: | 33 private: |
30 content::WebContents* web_contents_; // Weak. Owns this. | 34 content::WebContents* web_contents_; // Weak. Owns this. |
31 | 35 |
32 DISALLOW_COPY_AND_ASSIGN(TabDialogsViews); | 36 DISALLOW_COPY_AND_ASSIGN(TabDialogsViews); |
33 }; | 37 }; |
34 | 38 |
35 #endif // CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_ | 39 #endif // CHROME_BROWSER_UI_VIEWS_TAB_DIALOGS_VIEWS_H_ |
OLD | NEW |