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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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_observer.h ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 window_->LocalRemoveTransientWindow(child); 63 window_->LocalRemoveTransientWindow(child);
64 } 64 }
65 void LocalUnsetModal() { window_->is_modal_ = false; } 65 void LocalUnsetModal() { window_->is_modal_ = false; }
66 void LocalReorder(Window* relative, mojom::OrderDirection direction) { 66 void LocalReorder(Window* relative, mojom::OrderDirection direction) {
67 window_->LocalReorder(relative, direction); 67 window_->LocalReorder(relative, direction);
68 } 68 }
69 void LocalSetBounds(const gfx::Rect& old_bounds, 69 void LocalSetBounds(const gfx::Rect& old_bounds,
70 const gfx::Rect& new_bounds) { 70 const gfx::Rect& new_bounds) {
71 window_->LocalSetBounds(old_bounds, new_bounds); 71 window_->LocalSetBounds(old_bounds, new_bounds);
72 } 72 }
73 void LocalSetSurfaceId(const gfx::Size& size,
74 float device_scale_factor,
75 const cc::SurfaceId& surface_id,
76 const cc::SurfaceSequence& surface_sequence) {
77 window_->LocalSetSurfaceId(size, device_scale_factor, surface_id,
78 surface_sequence);
79 }
73 void LocalSetClientArea( 80 void LocalSetClientArea(
74 const gfx::Insets& client_area, 81 const gfx::Insets& client_area,
75 const std::vector<gfx::Rect>& additional_client_areas) { 82 const std::vector<gfx::Rect>& additional_client_areas) {
76 window_->LocalSetClientArea(client_area, additional_client_areas); 83 window_->LocalSetClientArea(client_area, additional_client_areas);
77 } 84 }
78 void LocalSetParentDrawn(bool drawn) { window_->LocalSetParentDrawn(drawn); } 85 void LocalSetParentDrawn(bool drawn) { window_->LocalSetParentDrawn(drawn); }
79 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); } 86 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); }
80 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); } 87 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); }
81 void LocalSetPredefinedCursor(mojom::Cursor cursor) { 88 void LocalSetPredefinedCursor(mojom::Cursor cursor) {
82 window_->LocalSetPredefinedCursor(cursor); 89 window_->LocalSetPredefinedCursor(cursor);
83 } 90 }
84 void LocalSetSharedProperty(const std::string& name, 91 void LocalSetSharedProperty(const std::string& name,
85 mojo::Array<uint8_t> new_data); 92 mojo::Array<uint8_t> new_data);
86 void LocalSetSharedProperty(const std::string& name, 93 void LocalSetSharedProperty(const std::string& name,
87 const std::vector<uint8_t>* data) { 94 const std::vector<uint8_t>* data) {
88 window_->LocalSetSharedProperty(name, data); 95 window_->LocalSetSharedProperty(name, data);
89 } 96 }
90 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } 97 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); }
91 98
92 private: 99 private:
93 Window* window_; 100 Window* window_;
94 101
95 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 102 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
96 }; 103 };
97 104
98 } // namespace ui 105 } // namespace ui
99 106
100 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ 107 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_observer.h ('k') | services/ui/public/cpp/window_tree_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698