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

Side by Side Diff: services/ui/ws/window_server_delegate.h

Issue 2645093003: [WIP] ScreenManager: Add an external window mode (Closed)
Patch Set: Created 3 years, 11 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 SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 17 matching lines...) Expand all
28 class WindowTreeBinding; 28 class WindowTreeBinding;
29 29
30 class WindowServerDelegate { 30 class WindowServerDelegate {
31 public: 31 public:
32 enum BindingType { 32 enum BindingType {
33 EMBED, 33 EMBED,
34 WINDOW_MANAGER, 34 WINDOW_MANAGER,
35 }; 35 };
36 36
37 // WindowServer signal that display initialization can start. 37 // WindowServer signal that display initialization can start.
38 virtual void StartDisplayInit() = 0; 38 virtual void StartDisplayInit(bool window_manager_connected) = 0;
39 39
40 // Called once when the AcceleratedWidget of a Display is available. 40 // Called once when the AcceleratedWidget of a Display is available.
41 virtual void OnFirstDisplayReady(); 41 virtual void OnFirstDisplayReady();
42 42
43 virtual void OnNoMoreDisplays() = 0; 43 virtual void OnNoMoreDisplays() = 0;
44 44
45 virtual bool IsTestConfig() const = 0; 45 virtual bool IsTestConfig() const = 0;
46 46
47 // Creates a WindowTreeBinding. Default implementation returns null, which 47 // Creates a WindowTreeBinding. Default implementation returns null, which
48 // creates DefaultBinding. 48 // creates DefaultBinding.
49 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( 49 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding(
50 BindingType type, 50 BindingType type,
51 ws::WindowServer* window_server, 51 ws::WindowServer* window_server,
52 ws::WindowTree* tree, 52 ws::WindowTree* tree,
53 mojom::WindowTreeRequest* tree_request, 53 mojom::WindowTreeRequest* tree_request,
54 mojom::WindowTreeClientPtr* client); 54 mojom::WindowTreeClientPtr* client);
55 55
56 protected: 56 protected:
57 virtual ~WindowServerDelegate() {} 57 virtual ~WindowServerDelegate() {}
58 }; 58 };
59 59
60 } // namespace ws 60 } // namespace ws
61 } // namespace ui 61 } // namespace ui
62 62
63 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ 63 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698