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

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

Issue 1766943002: Refators display related functionality into own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 9 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/connection_manager.cc ('k') | components/mus/ws/display.h » ('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_CONNECTION_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_
6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 class Display; 28 class Display;
29 class ServerWindow; 29 class ServerWindow;
30 class WindowTree; 30 class WindowTree;
31 class WindowTreeBinding; 31 class WindowTreeBinding;
32 32
33 class ConnectionManagerDelegate { 33 class ConnectionManagerDelegate {
34 public: 34 public:
35 // Called once when the AcceleratedWidget of a Display is available. 35 // Called once when the AcceleratedWidget of a Display is available.
36 virtual void OnFirstDisplayReady(); 36 virtual void OnFirstDisplayReady();
37 37
38 virtual void OnNoMoreRootConnections() = 0; 38 virtual void OnNoMoreDisplays() = 0;
39 39
40 // Creates a WindowTreeBinding in response to Embed() calls on the 40 // Creates a WindowTreeBinding in response to Embed() calls on the
41 // ConnectionManager. 41 // ConnectionManager.
42 virtual scoped_ptr<WindowTreeBinding> CreateWindowTreeBindingForEmbedAtWindow( 42 virtual scoped_ptr<WindowTreeBinding> CreateWindowTreeBindingForEmbedAtWindow(
43 ws::ConnectionManager* connection_manager, 43 ws::ConnectionManager* connection_manager,
44 ws::WindowTree* tree, 44 ws::WindowTree* tree,
45 mojom::WindowTreeRequest tree_request, 45 mojom::WindowTreeRequest tree_request,
46 mojom::WindowTreeClientPtr client) = 0; 46 mojom::WindowTreeClientPtr client) = 0;
47 47
48 // Called if no Displays have been created, but a WindowManagerFactory has 48 // Called if no Displays have been created, but a WindowManagerFactory has
49 // been set. 49 // been set.
50 virtual void CreateDefaultDisplays() = 0; 50 virtual void CreateDefaultDisplays() = 0;
51 51
52 protected: 52 protected:
53 virtual ~ConnectionManagerDelegate() {} 53 virtual ~ConnectionManagerDelegate() {}
54 }; 54 };
55 55
56 } // namespace ws 56 } // namespace ws
57 } // namespace mus 57 } // namespace mus
58 58
59 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_ 59 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/connection_manager.cc ('k') | components/mus/ws/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698