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

Side by Side Diff: components/mus/ws/window_server_delegate.h

Issue 1906623003: Convert //components/mus from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_server_delegate.cc » ('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 COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory>
10 #include <string> 11 #include <string>
11 12
12 #include "base/memory/scoped_ptr.h"
13 #include "components/mus/common/types.h" 13 #include "components/mus/common/types.h"
14 #include "components/mus/public/interfaces/window_tree.mojom.h" 14 #include "components/mus/public/interfaces/window_tree.mojom.h"
15 #include "mojo/public/cpp/bindings/interface_request.h" 15 #include "mojo/public/cpp/bindings/interface_request.h"
16 16
17 namespace mus { 17 namespace mus {
18 18
19 namespace mojom { 19 namespace mojom {
20 class Display; 20 class Display;
21 class WindowManagerFactory; 21 class WindowManagerFactory;
22 class WindowTree; 22 class WindowTree;
(...skipping 20 matching lines...) Expand all
43 43
44 // Called once when the AcceleratedWidget of a Display is available. 44 // Called once when the AcceleratedWidget of a Display is available.
45 virtual void OnFirstDisplayReady(); 45 virtual void OnFirstDisplayReady();
46 46
47 virtual void OnNoMoreDisplays() = 0; 47 virtual void OnNoMoreDisplays() = 0;
48 48
49 virtual bool IsTestConfig() const = 0; 49 virtual bool IsTestConfig() const = 0;
50 50
51 // Creates a WindowTreeBinding. Default implementation returns null, which 51 // Creates a WindowTreeBinding. Default implementation returns null, which
52 // creates DefaultBinding. 52 // creates DefaultBinding.
53 virtual scoped_ptr<WindowTreeBinding> CreateWindowTreeBinding( 53 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding(
54 BindingType type, 54 BindingType type,
55 ws::WindowServer* window_server, 55 ws::WindowServer* window_server,
56 ws::WindowTree* tree, 56 ws::WindowTree* tree,
57 mojom::WindowTreeRequest* tree_request, 57 mojom::WindowTreeRequest* tree_request,
58 mojom::WindowTreeClientPtr* client); 58 mojom::WindowTreeClientPtr* client);
59 59
60 protected: 60 protected:
61 virtual ~WindowServerDelegate() {} 61 virtual ~WindowServerDelegate() {}
62 }; 62 };
63 63
64 } // namespace ws 64 } // namespace ws
65 } // namespace mus 65 } // namespace mus
66 66
67 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_ 67 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_server.cc ('k') | components/mus/ws/window_server_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698