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

Side by Side Diff: components/mus/connection_manager.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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/client_connection.cc ('k') | components/mus/connection_manager.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_VIEW_MANAGER_CONNECTION_MANAGER_H_ 5 #ifndef COMPONENTS_MUS_CONNECTION_MANAGER_H_
6 #define COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_ 6 #define COMPONENTS_MUS_CONNECTION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "components/view_manager/focus_controller_delegate.h" 14 #include "components/mus/focus_controller_delegate.h"
15 #include "components/view_manager/ids.h" 15 #include "components/mus/ids.h"
16 #include "components/view_manager/public/interfaces/view_tree.mojom.h" 16 #include "components/mus/public/interfaces/view_tree.mojom.h"
17 #include "components/view_manager/public/interfaces/view_tree_host.mojom.h" 17 #include "components/mus/public/interfaces/view_tree_host.mojom.h"
18 #include "components/view_manager/server_view_delegate.h" 18 #include "components/mus/server_view_delegate.h"
19 #include "components/view_manager/server_view_observer.h" 19 #include "components/mus/server_view_observer.h"
20 #include "components/view_manager/surfaces/surfaces_state.h" 20 #include "components/mus/surfaces/surfaces_state.h"
21 #include "components/view_manager/view_tree_host_impl.h" 21 #include "components/mus/view_tree_host_impl.h"
22 #include "mojo/converters/surfaces/custom_surface_converter.h" 22 #include "mojo/converters/surfaces/custom_surface_converter.h"
23 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" 23 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h"
24 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" 24 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
25 25
26 namespace view_manager { 26 namespace view_manager {
27 27
28 class ClientConnection; 28 class ClientConnection;
29 class ConnectionManagerDelegate; 29 class ConnectionManagerDelegate;
30 class ServerView; 30 class ServerView;
31 class ViewTreeHostConnection; 31 class ViewTreeHostConnection;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // See description of ViewTree::Embed() for details. This assumes 98 // See description of ViewTree::Embed() for details. This assumes
99 // |transport_view_id| is valid. 99 // |transport_view_id| is valid.
100 void EmbedAtView(mojo::ConnectionSpecificId creator_id, 100 void EmbedAtView(mojo::ConnectionSpecificId creator_id,
101 const ViewId& view_id, 101 const ViewId& view_id,
102 mojo::URLRequestPtr request); 102 mojo::URLRequestPtr request);
103 ViewTreeImpl* EmbedAtView(mojo::ConnectionSpecificId creator_id, 103 ViewTreeImpl* EmbedAtView(mojo::ConnectionSpecificId creator_id,
104 const ViewId& view_id, 104 const ViewId& view_id,
105 mojo::ViewTreeClientPtr client); 105 mojo::ViewTreeClientPtr client);
106 106
107 // Returns the connection by id. 107 // Returns the connection by id.
108 ViewTreeImpl* GetConnection( 108 ViewTreeImpl* GetConnection(mojo::ConnectionSpecificId connection_id);
109 mojo::ConnectionSpecificId connection_id);
110 109
111 // Returns the View identified by |id|. 110 // Returns the View identified by |id|.
112 ServerView* GetView(const ViewId& id); 111 ServerView* GetView(const ViewId& id);
113 112
114 // Returns whether |view| is a descendant of some root view but not itself a 113 // Returns whether |view| is a descendant of some root view but not itself a
115 // root view. 114 // root view.
116 bool IsViewAttachedToRoot(const ServerView* view) const; 115 bool IsViewAttachedToRoot(const ServerView* view) const;
117 116
118 // Schedules a paint for the specified region in the coordinates of |view|. 117 // Schedules a paint for the specified region in the coordinates of |view|.
119 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds); 118 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // (it's created on the stack by ViewTreeImpl). 254 // (it's created on the stack by ViewTreeImpl).
256 ScopedChange* current_change_; 255 ScopedChange* current_change_;
257 256
258 bool in_destructor_; 257 bool in_destructor_;
259 258
260 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); 259 DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
261 }; 260 };
262 261
263 } // namespace view_manager 262 } // namespace view_manager
264 263
265 #endif // COMPONENTS_VIEW_MANAGER_CONNECTION_MANAGER_H_ 264 #endif // COMPONENTS_MUS_CONNECTION_MANAGER_H_
OLDNEW
« no previous file with comments | « components/mus/client_connection.cc ('k') | components/mus/connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698