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_COCOA_TAB_DIALOGS_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 Profile* profile, | 25 Profile* profile, |
26 const std::string& username, | 26 const std::string& username, |
27 ui::ProfileSigninConfirmationDelegate* delegate) override; | 27 ui::ProfileSigninConfirmationDelegate* delegate) override; |
28 void ShowManagePasswordsBubble(bool user_action) override; | 28 void ShowManagePasswordsBubble(bool user_action) override; |
29 void HideManagePasswordsBubble() override; | 29 void HideManagePasswordsBubble() override; |
30 base::WeakPtr<ValidationMessageBubble> ShowValidationMessage( | 30 base::WeakPtr<ValidationMessageBubble> ShowValidationMessage( |
31 const gfx::Rect& anchor_in_root_view, | 31 const gfx::Rect& anchor_in_root_view, |
32 const base::string16& main_text, | 32 const base::string16& main_text, |
33 const base::string16& sub_text) override; | 33 const base::string16& sub_text) override; |
34 | 34 |
| 35 protected: |
| 36 content::WebContents* web_contents() const { return web_contents_; } |
| 37 |
35 private: | 38 private: |
36 content::WebContents* web_contents_; // Weak. Owns this. | 39 content::WebContents* web_contents_; // Weak. Owns this. |
37 | 40 |
38 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa); | 41 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa); |
39 }; | 42 }; |
40 | 43 |
41 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ | 44 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ |
OLD | NEW |