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

Side by Side Diff: components/mus/public/cpp/window_tree_connection.h

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/mus/public/cpp/types.h" 10 #include "components/mus/public/cpp/types.h"
11 #include "components/mus/public/interfaces/view_tree.mojom.h" 11 #include "components/mus/public/interfaces/window_tree.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_WIN)
15 // Windows headers define a macro for CreateWindow. 15 // Windows headers define a macro for CreateWindow.
16 #if defined(CreateWindow) 16 #if defined(CreateWindow)
17 #undef CreateWindow 17 #undef CreateWindow
18 #endif 18 #endif
19 #endif 19 #endif
20 20
21 namespace mus { 21 namespace mus {
(...skipping 12 matching lines...) Expand all
34 WAIT_FOR_EMBED, 34 WAIT_FOR_EMBED,
35 DONT_WAIT_FOR_EMBED 35 DONT_WAIT_FOR_EMBED
36 }; 36 };
37 37
38 virtual ~WindowTreeConnection() {} 38 virtual ~WindowTreeConnection() {}
39 39
40 // The returned WindowTreeConnection instance owns itself, and is deleted when 40 // The returned WindowTreeConnection instance owns itself, and is deleted when
41 // the last root is destroyed or the connection to the service is broken. 41 // the last root is destroyed or the connection to the service is broken.
42 static WindowTreeConnection* Create( 42 static WindowTreeConnection* Create(
43 WindowTreeDelegate* delegate, 43 WindowTreeDelegate* delegate,
44 mojo::InterfaceRequest<mojo::ViewTreeClient> request, 44 mojo::InterfaceRequest<mojom::WindowTreeClient> request,
45 CreateType create_type); 45 CreateType create_type);
46 46
47 // Returns the root of this connection. 47 // Returns the root of this connection.
48 virtual Window* GetRoot() = 0; 48 virtual Window* GetRoot() = 0;
49 49
50 // Returns a View known to this connection. 50 // Returns a View known to this connection.
51 virtual Window* GetWindowById(Id id) = 0; 51 virtual Window* GetWindowById(Id id) = 0;
52 52
53 // Returns the focused view; null if focus is not yet known or another app is 53 // Returns the focused view; null if focus is not yet known or another app is
54 // focused. 54 // focused.
55 virtual Window* GetFocusedWindow() = 0; 55 virtual Window* GetFocusedWindow() = 0;
56 56
57 // Creates and returns a new View (which is owned by the ViewManager). Views 57 // Creates and returns a new View (which is owned by the ViewManager). Views
58 // are initially hidden, use SetVisible(true) to show. 58 // are initially hidden, use SetVisible(true) to show.
59 virtual Window* CreateWindow() = 0; 59 virtual Window* CreateWindow() = 0;
60 60
61 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified. 61 // Returns true if ACCESS_POLICY_EMBED_ROOT was specified.
62 virtual bool IsEmbedRoot() = 0; 62 virtual bool IsEmbedRoot() = 0;
63 63
64 // Returns the id for this connection. 64 // Returns the id for this connection.
65 virtual ConnectionSpecificId GetConnectionId() = 0; 65 virtual ConnectionSpecificId GetConnectionId() = 0;
66 }; 66 };
67 67
68 } // namespace mus 68 } // namespace mus
69 69
70 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_ 70 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/window_surface_client.h ('k') | components/mus/public/cpp/window_tree_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698