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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_action_platform_delegate_cocoa.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 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_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE_CO COA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 public: 21 public:
22 ExtensionActionPlatformDelegateCocoa( 22 ExtensionActionPlatformDelegateCocoa(
23 ExtensionActionViewController* controller); 23 ExtensionActionViewController* controller);
24 ~ExtensionActionPlatformDelegateCocoa() override; 24 ~ExtensionActionPlatformDelegateCocoa() override;
25 25
26 private: 26 private:
27 // ExtensionActionPlatformDelegate: 27 // ExtensionActionPlatformDelegate:
28 void RegisterCommand() override; 28 void RegisterCommand() override;
29 void OnDelegateSet() override; 29 void OnDelegateSet() override;
30 void ShowPopup( 30 void ShowPopup(
31 scoped_ptr<extensions::ExtensionViewHost> host, 31 std::unique_ptr<extensions::ExtensionViewHost> host,
32 bool grant_tab_permissions, 32 bool grant_tab_permissions,
33 ExtensionActionViewController::PopupShowAction show_action) override; 33 ExtensionActionViewController::PopupShowAction show_action) override;
34 void CloseOverflowMenu() override; 34 void CloseOverflowMenu() override;
35 void ShowContextMenu() override; 35 void ShowContextMenu() override;
36 36
37 // content::NotificationObserver: 37 // content::NotificationObserver:
38 void Observe(int type, 38 void Observe(int type,
39 const content::NotificationSource& source, 39 const content::NotificationSource& source,
40 const content::NotificationDetails& details) override; 40 const content::NotificationDetails& details) override;
41 41
42 // Returns the point at which the popup should be shown. 42 // Returns the point at which the popup should be shown.
43 NSPoint GetPopupPoint() const; 43 NSPoint GetPopupPoint() const;
44 44
45 // The main controller for this extension action. 45 // The main controller for this extension action.
46 ExtensionActionViewController* controller_; 46 ExtensionActionViewController* controller_;
47 47
48 content::NotificationRegistrar registrar_; 48 content::NotificationRegistrar registrar_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateCocoa); 50 DISALLOW_COPY_AND_ASSIGN(ExtensionActionPlatformDelegateCocoa);
51 }; 51 };
52 52
53 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _COCOA_H_ 53 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_EXTENSION_ACTION_PLATFORM_DELEGATE _COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698