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

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

Issue 2484223006: Remove CreateDefaultDisplay(). (Closed)
Patch Set: Remove debug LOG. Created 4 years, 1 month 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 | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree_unittest.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 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 18 matching lines...) Expand all
29 class WindowTree; 29 class WindowTree;
30 class WindowTreeBinding; 30 class WindowTreeBinding;
31 31
32 class WindowServerDelegate { 32 class WindowServerDelegate {
33 public: 33 public:
34 enum BindingType { 34 enum BindingType {
35 EMBED, 35 EMBED,
36 WINDOW_MANAGER, 36 WINDOW_MANAGER,
37 }; 37 };
38 38
39 // Called if no Displays have been created, but a WindowManagerFactory has
40 // been set.
41 virtual void CreateDefaultDisplays() = 0;
42
43 // Called once when the AcceleratedWidget of a Display is available. 39 // Called once when the AcceleratedWidget of a Display is available.
44 virtual void OnFirstDisplayReady(); 40 virtual void OnFirstDisplayReady();
45 41
46 virtual void OnNoMoreDisplays() = 0; 42 virtual void OnNoMoreDisplays() = 0;
47 43
48 virtual bool IsTestConfig() const = 0; 44 virtual bool IsTestConfig() const = 0;
49 45
50 // Called when touchscreen coordinate transforms should be updated. For 46 // Called when touchscreen coordinate transforms should be updated. For
51 // example when displays or touch input devices are added/removed. 47 // example when displays or touch input devices are added/removed.
52 virtual void UpdateTouchTransforms() = 0; 48 virtual void UpdateTouchTransforms() = 0;
53 49
54 // Creates a WindowTreeBinding. Default implementation returns null, which 50 // Creates a WindowTreeBinding. Default implementation returns null, which
55 // creates DefaultBinding. 51 // creates DefaultBinding.
56 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( 52 virtual std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding(
57 BindingType type, 53 BindingType type,
58 ws::WindowServer* window_server, 54 ws::WindowServer* window_server,
59 ws::WindowTree* tree, 55 ws::WindowTree* tree,
60 mojom::WindowTreeRequest* tree_request, 56 mojom::WindowTreeRequest* tree_request,
61 mojom::WindowTreeClientPtr* client); 57 mojom::WindowTreeClientPtr* client);
62 58
63 protected: 59 protected:
64 virtual ~WindowServerDelegate() {} 60 virtual ~WindowServerDelegate() {}
65 }; 61 };
66 62
67 } // namespace ws 63 } // namespace ws
68 } // namespace ui 64 } // namespace ui
69 65
70 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ 66 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698