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

Side by Side Diff: components/view_manager/public/cpp/lib/view_manager_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: Addressed comments Created 5 years, 4 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_MANAGER_CLIENT_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_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_manager.h" 10 #include "components/view_manager/public/cpp/view_manager.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void SetImeVisibility(Id view_id, bool visible, TextInputStatePtr state); 55 void SetImeVisibility(Id view_id, bool visible, TextInputStatePtr state);
56 56
57 void Embed(const String& url, Id view_id); 57 void Embed(const String& url, Id view_id);
58 void Embed(mojo::URLRequestPtr request, 58 void Embed(mojo::URLRequestPtr request,
59 Id view_id, 59 Id view_id,
60 InterfaceRequest<ServiceProvider> services, 60 InterfaceRequest<ServiceProvider> services,
61 ServiceProviderPtr exposed_services); 61 ServiceProviderPtr exposed_services);
62 void Embed(Id view_id, ViewManagerClientPtr client); 62 void Embed(Id view_id, ViewManagerClientPtr client);
63 void EmbedAllowingReembed(mojo::URLRequestPtr request, Id view_id); 63 void EmbedAllowingReembed(mojo::URLRequestPtr request, Id view_id);
64 64
65 void RequestCompositorFrameReceiver(
66 Id view_id,
67 InterfaceRequest<CompositorFrameReceiver> receiver);
68
65 void set_change_acked_callback(const Callback<void(void)>& callback) { 69 void set_change_acked_callback(const Callback<void(void)>& callback) {
66 change_acked_callback_ = callback; 70 change_acked_callback_ = callback;
67 } 71 }
68 void ClearChangeAckedCallback() { change_acked_callback_.reset(); } 72 void ClearChangeAckedCallback() { change_acked_callback_.reset(); }
69 73
70 // Start/stop tracking views. While tracked, they can be retrieved via 74 // Start/stop tracking views. While tracked, they can be retrieved via
71 // ViewManager::GetViewById. 75 // ViewManager::GetViewById.
72 void AddView(View* view); 76 void AddView(View* view);
73 void RemoveView(Id view_id); 77 void RemoveView(Id view_id);
74 78
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 bool is_embed_root_; 156 bool is_embed_root_;
153 157
154 bool in_destructor_; 158 bool in_destructor_;
155 159
156 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); 160 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl);
157 }; 161 };
158 162
159 } // namespace mojo 163 } // namespace mojo
160 164
161 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ 165 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_MANAGER_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698