Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: chrome/browser/ui/cocoa/tab_dialogs_cocoa.h

Issue 2539673003: Mac: Convert all the TabDialogs to Harmony (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 // Cocoa implementation of TabDialogs interface. 11 // Cocoa implementation of TabDialogs interface.
12 class TabDialogsCocoa : public TabDialogs { 12 class TabDialogsCocoa : public TabDialogs {
13 public: 13 public:
14 explicit TabDialogsCocoa(content::WebContents* contents); 14 explicit TabDialogsCocoa(content::WebContents* contents);
15 ~TabDialogsCocoa() override; 15 ~TabDialogsCocoa() override;
16 16
17 static TabDialogs* CreateTabDialogsViewsMac(content::WebContents* contents);
18
17 // TabDialogs: 19 // TabDialogs:
18 gfx::NativeView GetDialogParentView() const override; 20 gfx::NativeView GetDialogParentView() const override;
19 void ShowCollectedCookies() override; 21 void ShowCollectedCookies() override;
20 void ShowHungRendererDialog( 22 void ShowHungRendererDialog(
21 const content::WebContentsUnresponsiveState& unresponsive_state) override; 23 const content::WebContentsUnresponsiveState& unresponsive_state) override;
22 void HideHungRendererDialog() override; 24 void HideHungRendererDialog() override;
23 void ShowProfileSigninConfirmation( 25 void ShowProfileSigninConfirmation(
24 Browser* browser, 26 Browser* browser,
25 Profile* profile, 27 Profile* profile,
26 const std::string& username, 28 const std::string& username,
27 ui::ProfileSigninConfirmationDelegate* delegate) override; 29 ui::ProfileSigninConfirmationDelegate* delegate) override;
28 void ShowManagePasswordsBubble(bool user_action) override; 30 void ShowManagePasswordsBubble(bool user_action) override;
29 void HideManagePasswordsBubble() override; 31 void HideManagePasswordsBubble() override;
30 base::WeakPtr<ValidationMessageBubble> ShowValidationMessage( 32 base::WeakPtr<ValidationMessageBubble> ShowValidationMessage(
31 const gfx::Rect& anchor_in_root_view, 33 const gfx::Rect& anchor_in_root_view,
32 const base::string16& main_text, 34 const base::string16& main_text,
33 const base::string16& sub_text) override; 35 const base::string16& sub_text) override;
34 36
35 private: 37 private:
36 content::WebContents* web_contents_; // Weak. Owns this. 38 content::WebContents* web_contents_; // Weak. Owns this.
37 39
38 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa); 40 DISALLOW_COPY_AND_ASSIGN(TabDialogsCocoa);
39 }; 41 };
40 42
41 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_TAB_DIALOGS_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/cocoa/tab_dialogs_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698