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 "chrome/browser/ui/tab_dialogs.h" | 9 #include "chrome/browser/ui/tab_dialogs.h" |
9 | 10 |
10 // Cocoa implementation of TabDialogs interface. | 11 // Cocoa implementation of TabDialogs interface. |
11 class TabDialogsCocoa : public TabDialogs { | 12 class TabDialogsCocoa : public TabDialogs { |
12 public: | 13 public: |
13 explicit TabDialogsCocoa(content::WebContents* contents); | 14 explicit TabDialogsCocoa(content::WebContents* contents); |
14 ~TabDialogsCocoa() override; | 15 ~TabDialogsCocoa() override; |
15 | 16 |
16 // TabDialogs: | 17 // TabDialogs: |
17 gfx::NativeView GetDialogParentView() const override; | 18 gfx::NativeView GetDialogParentView() const override; |
(...skipping 12 matching lines...) Expand all Loading... |
30 const base::string16& main_text, | 31 const base::string16& main_text, |
31 const base::string16& sub_text) override; | 32 const base::string16& sub_text) override; |
32 | 33 |
33 private: | 34 private: |
34 content::WebContents* web_contents_; // Weak. Owns this. | 35 content::WebContents* web_contents_; // Weak. Owns this. |
35 | 36 |
36 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa); | 37 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa); |
37 }; | 38 }; |
38 | 39 |
39 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ | 40 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ |
OLD | NEW |