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

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

Issue 985133002: Remove NativeWebContentsModalDialog and NativePopup typedefs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension-popup
Patch Set: Created 5 years, 9 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_COCOA_H_
7 7
8 #import "base/mac/scoped_nsobject.h" 8 #import "base/mac/scoped_nsobject.h"
9 #include "components/web_modal/single_web_contents_dialog_manager.h" 9 #include "components/web_modal/single_web_contents_dialog_manager.h"
10 10
(...skipping 10 matching lines...) Expand all
21 web_modal::SingleWebContentsDialogManagerDelegate* delegate); 21 web_modal::SingleWebContentsDialogManagerDelegate* delegate);
22 ~SingleWebContentsDialogManagerCocoa() override; 22 ~SingleWebContentsDialogManagerCocoa() override;
23 23
24 // SingleWebContentsDialogManager overrides. 24 // SingleWebContentsDialogManager overrides.
25 void Show() override; 25 void Show() override;
26 void Hide() override; 26 void Hide() override;
27 void Close() override; 27 void Close() override;
28 void Focus() override; 28 void Focus() override;
29 void Pulse() override; 29 void Pulse() override;
30 void HostChanged(web_modal::WebContentsModalDialogHost* new_host) override; 30 void HostChanged(web_modal::WebContentsModalDialogHost* new_host) override;
31 web_modal::NativeWebContentsModalDialog dialog() override; 31 gfx::NativeWindow dialog() override;
32 32
33 private: 33 private:
34 ConstrainedWindowMac* client_; // Weak. Can be null. 34 ConstrainedWindowMac* client_; // Weak. Can be null.
35 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_; 35 base::scoped_nsprotocol<id<ConstrainedWindowSheet>> sheet_;
36 // Weak. Owns this. 36 // Weak. Owns this.
37 web_modal::SingleWebContentsDialogManagerDelegate* delegate_; 37 web_modal::SingleWebContentsDialogManagerDelegate* delegate_;
38 bool shown_; 38 bool shown_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerCocoa); 40 DISALLOW_COPY_AND_ASSIGN(SingleWebContentsDialogManagerCocoa);
41 }; 41 };
42 42
43 #endif // CHROME_BROWSER_UI_COCOA_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_COCOA_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_SINGLE_WEB_CONTENTS_DIALOG_MANAGER_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698