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

Side by Side Diff: chrome/browser/ui/toolbar/media_router_action_platform_delegate.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 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_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9 9
10 class Browser; 10 class Browser;
11 11
12 class MediaRouterActionPlatformDelegate { 12 class MediaRouterActionPlatformDelegate {
13 public: 13 public:
14 MediaRouterActionPlatformDelegate() {} 14 MediaRouterActionPlatformDelegate() {}
15 virtual ~MediaRouterActionPlatformDelegate() {} 15 virtual ~MediaRouterActionPlatformDelegate() {}
16 16
17 // Returns a created MediaRouterActionPlatformDelegate. This is defined in the 17 // Returns a created MediaRouterActionPlatformDelegate. This is defined in the
18 // platform-specific implementation for the class. 18 // platform-specific implementation for the class.
19 static scoped_ptr<MediaRouterActionPlatformDelegate> Create(Browser* browser); 19 static std::unique_ptr<MediaRouterActionPlatformDelegate> Create(
20 Browser* browser);
20 21
21 // Closes the overflow menu, if it was open. Returns whether or not the 22 // Closes the overflow menu, if it was open. Returns whether or not the
22 // overflow menu was closed. 23 // overflow menu was closed.
23 virtual bool CloseOverflowMenuIfOpen() = 0; 24 virtual bool CloseOverflowMenuIfOpen() = 0;
24 }; 25 };
25 26
26 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_ 27 #endif // CHROME_BROWSER_UI_TOOLBAR_MEDIA_ROUTER_ACTION_PLATFORM_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/media_router_action.h ('k') | chrome/browser/ui/toolbar/media_router_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698