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

Side by Side Diff: services/ui/public/cpp/window_private.h

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 11 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 | « services/ui/public/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.h » ('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 SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); } 81 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); }
82 void LocalSetPredefinedCursor(mojom::Cursor cursor) { 82 void LocalSetPredefinedCursor(mojom::Cursor cursor) {
83 window_->LocalSetPredefinedCursor(cursor); 83 window_->LocalSetPredefinedCursor(cursor);
84 } 84 }
85 void LocalSetSharedProperty(const std::string& name, 85 void LocalSetSharedProperty(const std::string& name,
86 mojo::Array<uint8_t> new_data); 86 mojo::Array<uint8_t> new_data);
87 void LocalSetSharedProperty(const std::string& name, 87 void LocalSetSharedProperty(const std::string& name,
88 const std::vector<uint8_t>* data) { 88 const std::vector<uint8_t>* data) {
89 window_->LocalSetSharedProperty(name, data); 89 window_->LocalSetSharedProperty(name, data);
90 } 90 }
91 void LocalSetSurfaceId(std::unique_ptr<SurfaceInfo> surface_info) { 91 void LocalSetSurfaceInfo(const cc::SurfaceInfo& surface_info) {
92 window_->LocalSetSurfaceId(std::move(surface_info)); 92 window_->LocalSetSurfaceInfo(surface_info);
93 } 93 }
94 94
95 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } 95 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); }
96 96
97 private: 97 private:
98 Window* window_; 98 Window* window_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 100 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
101 }; 101 };
102 102
103 } // namespace ui 103 } // namespace ui
104 104
105 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ 105 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window.cc ('k') | services/ui/public/cpp/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698