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

Side by Side Diff: components/view_manager/public/cpp/view.h

Issue 1281663002: Mandoline: Allow submitting CompositorFrames directly to mojo::Views (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO 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_VIEW_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Geometric disposition. 54 // Geometric disposition.
55 const Rect& bounds() const { return bounds_; } 55 const Rect& bounds() const { return bounds_; }
56 void SetBounds(const Rect& bounds); 56 void SetBounds(const Rect& bounds);
57 57
58 // Visibility (also see IsDrawn()). When created views are hidden. 58 // Visibility (also see IsDrawn()). When created views are hidden.
59 bool visible() const { return visible_; } 59 bool visible() const { return visible_; }
60 void SetVisible(bool value); 60 void SetVisible(bool value);
61 61
62 const ViewportMetrics& viewport_metrics() { return *viewport_metrics_; } 62 const ViewportMetrics& viewport_metrics() { return *viewport_metrics_; }
63 63
64 void RequestCompositorFrameReceiver(
65 InterfaceRequest<CompositorFrameReceiver> receiver);
sky 2015/08/25 17:11:12 I think we would be better served by not exposing
Fady Samuel 2015/08/25 23:39:30 I absolutely agree. I'm working on it now but I'd
66
64 // Returns the set of string to bag of byte properties. These properties are 67 // Returns the set of string to bag of byte properties. These properties are
65 // shared with the view manager. 68 // shared with the view manager.
66 const SharedProperties& shared_properties() const { return properties_; } 69 const SharedProperties& shared_properties() const { return properties_; }
67 // Sets a property. If |data| is null, this property is deleted. 70 // Sets a property. If |data| is null, this property is deleted.
68 void SetSharedProperty(const std::string& name, 71 void SetSharedProperty(const std::string& name,
69 const std::vector<uint8_t>* data); 72 const std::vector<uint8_t>* data);
70 73
71 // Sets the |value| of the given window |property|. Setting to the default 74 // Sets the |value| of the given window |property|. Setting to the default
72 // value (e.g., NULL) removes the property. The caller is responsible for the 75 // value (e.g., NULL) removes the property. The caller is responsible for the
73 // lifetime of any object set as a property on the View. 76 // lifetime of any object set as a property on the View.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 }; 214 };
212 215
213 std::map<const void*, Value> prop_map_; 216 std::map<const void*, Value> prop_map_;
214 217
215 MOJO_DISALLOW_COPY_AND_ASSIGN(View); 218 MOJO_DISALLOW_COPY_AND_ASSIGN(View);
216 }; 219 };
217 220
218 } // namespace mojo 221 } // namespace mojo
219 222
220 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_ 223 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698