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

Side by Side Diff: components/view_manager/public/cpp/lib/view_tree_client_impl.h

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (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
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_PUBLIC_CPP_LIB_VIEW_TREE_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_TREE_CLIENT_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_TREE_CLIENT_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_TREE_CLIENT_IMPL_H_
7 7
8 #include "components/view_manager/public/cpp/types.h" 8 #include "components/view_manager/public/cpp/types.h"
9 #include "components/view_manager/public/cpp/view.h" 9 #include "components/view_manager/public/cpp/view.h"
10 #include "components/view_manager/public/cpp/view_tree_connection.h" 10 #include "components/view_manager/public/cpp/view_tree_connection.h"
(...skipping 23 matching lines...) Expand all
34 // refers to the root view. 34 // refers to the root view.
35 void AddChild(Id child_id, Id parent_id); 35 void AddChild(Id child_id, Id parent_id);
36 void RemoveChild(Id child_id, Id parent_id); 36 void RemoveChild(Id child_id, Id parent_id);
37 37
38 void Reorder(Id view_id, Id relative_view_id, OrderDirection direction); 38 void Reorder(Id view_id, Id relative_view_id, OrderDirection direction);
39 39
40 // Returns true if the specified view was created by this connection. 40 // Returns true if the specified view was created by this connection.
41 bool OwnsView(Id id) const; 41 bool OwnsView(Id id) const;
42 42
43 void SetBounds(Id view_id, const Rect& bounds); 43 void SetBounds(Id view_id, const Rect& bounds);
44 void SetSurfaceId(Id view_id, SurfaceIdPtr surface_id);
45 void SetFocus(Id view_id); 44 void SetFocus(Id view_id);
46 void SetVisible(Id view_id, bool visible); 45 void SetVisible(Id view_id, bool visible);
47 void SetProperty(Id view_id, 46 void SetProperty(Id view_id,
48 const std::string& name, 47 const std::string& name,
49 const std::vector<uint8_t>& data); 48 const std::vector<uint8_t>& data);
50 void SetViewTextInputState(Id view_id, TextInputStatePtr state); 49 void SetViewTextInputState(Id view_id, TextInputStatePtr state);
51 void SetImeVisibility(Id view_id, bool visible, TextInputStatePtr state); 50 void SetImeVisibility(Id view_id, bool visible, TextInputStatePtr state);
52 51
53 void Embed(const String& url, Id view_id); 52 void Embed(const String& url, Id view_id);
54 void Embed(mojo::URLRequestPtr request, 53 void Embed(mojo::URLRequestPtr request,
55 Id view_id, 54 Id view_id,
56 InterfaceRequest<ServiceProvider> services, 55 InterfaceRequest<ServiceProvider> services,
57 ServiceProviderPtr exposed_services); 56 ServiceProviderPtr exposed_services);
58 void Embed(Id view_id, ViewTreeClientPtr client); 57 void Embed(Id view_id, ViewTreeClientPtr client);
59 58
59 void RequestSurface(Id view_id,
60 InterfaceRequest<Surface> surface,
61 SurfaceClientPtr client);
62
60 void set_change_acked_callback(const Callback<void(void)>& callback) { 63 void set_change_acked_callback(const Callback<void(void)>& callback) {
61 change_acked_callback_ = callback; 64 change_acked_callback_ = callback;
62 } 65 }
63 void ClearChangeAckedCallback() { change_acked_callback_.reset(); } 66 void ClearChangeAckedCallback() { change_acked_callback_.reset(); }
64 67
65 // Start/stop tracking views. While tracked, they can be retrieved via 68 // Start/stop tracking views. While tracked, they can be retrieved via
66 // ViewTreeConnection::GetViewById. 69 // ViewTreeConnection::GetViewById.
67 void AddView(View* view); 70 void AddView(View* view);
68 void RemoveView(Id view_id); 71 void RemoveView(Id view_id);
69 72
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool is_embed_root_; 146 bool is_embed_root_;
144 147
145 bool in_destructor_; 148 bool in_destructor_;
146 149
147 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTreeClientImpl); 150 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewTreeClientImpl);
148 }; 151 };
149 152
150 } // namespace mojo 153 } // namespace mojo
151 154
152 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_TREE_CLIENT_IMPL_H_ 155 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_TREE_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698