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

Side by Side Diff: components/mus/public/cpp/lib/window_private.h

Issue 1605773004: mus: Implement Window Server Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create InFlightCaptureChange add tests Created 4 years, 10 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_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void LocalRemoveTransientWindow(Window* child) { 62 void LocalRemoveTransientWindow(Window* child) {
63 window_->LocalRemoveTransientWindow(child); 63 window_->LocalRemoveTransientWindow(child);
64 } 64 }
65 void LocalReorder(Window* relative, mojom::OrderDirection direction) { 65 void LocalReorder(Window* relative, mojom::OrderDirection direction) {
66 window_->LocalReorder(relative, direction); 66 window_->LocalReorder(relative, direction);
67 } 67 }
68 void LocalSetBounds(const gfx::Rect& old_bounds, 68 void LocalSetBounds(const gfx::Rect& old_bounds,
69 const gfx::Rect& new_bounds) { 69 const gfx::Rect& new_bounds) {
70 window_->LocalSetBounds(old_bounds, new_bounds); 70 window_->LocalSetBounds(old_bounds, new_bounds);
71 } 71 }
72 void LocalSetCapture(bool capture) { window_->LocalSetCapture(capture); }
72 void LocalSetClientArea( 73 void LocalSetClientArea(
73 const gfx::Insets& client_area, 74 const gfx::Insets& client_area,
74 const std::vector<gfx::Rect>& additional_client_areas) { 75 const std::vector<gfx::Rect>& additional_client_areas) {
75 window_->LocalSetClientArea(client_area, additional_client_areas); 76 window_->LocalSetClientArea(client_area, additional_client_areas);
76 } 77 }
77 void LocalSetDrawn(bool drawn) { window_->LocalSetDrawn(drawn); } 78 void LocalSetDrawn(bool drawn) { window_->LocalSetDrawn(drawn); }
78 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); } 79 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); }
79 void LocalSetPredefinedCursor(mojom::Cursor cursor) { 80 void LocalSetPredefinedCursor(mojom::Cursor cursor) {
80 window_->LocalSetPredefinedCursor(cursor); 81 window_->LocalSetPredefinedCursor(cursor);
81 } 82 }
82 void LocalSetSharedProperty(const std::string& name, 83 void LocalSetSharedProperty(const std::string& name,
83 mojo::Array<uint8_t> new_data); 84 mojo::Array<uint8_t> new_data);
84 void LocalSetSharedProperty(const std::string& name, 85 void LocalSetSharedProperty(const std::string& name,
85 const std::vector<uint8_t>* data) { 86 const std::vector<uint8_t>* data) {
86 window_->LocalSetSharedProperty(name, data); 87 window_->LocalSetSharedProperty(name, data);
87 } 88 }
88 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } 89 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); }
89 90
90 private: 91 private:
91 Window* window_; 92 Window* window_;
92 93
93 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 94 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
94 }; 95 };
95 96
96 } // namespace mus 97 } // namespace mus
97 98
98 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 99 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698