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

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

Issue 1864113002: Fixes problems with drawn state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: parentdrawn and merge Created 4 years, 8 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 17 matching lines...) Expand all
28 base::ObserverList<WindowObserver>* observers() { 28 base::ObserverList<WindowObserver>* observers() {
29 return &window_->observers_; 29 return &window_->observers_;
30 } 30 }
31 31
32 void ClearParent() { window_->parent_ = nullptr; } 32 void ClearParent() { window_->parent_ = nullptr; }
33 33
34 void ClearTransientParent() { window_->transient_parent_ = nullptr; } 34 void ClearTransientParent() { window_->transient_parent_ = nullptr; }
35 35
36 void set_visible(bool visible) { window_->visible_ = visible; } 36 void set_visible(bool visible) { window_->visible_ = visible; }
37 37
38 void set_drawn(bool drawn) { window_->drawn_ = drawn; } 38 void set_parent_drawn(bool drawn) { window_->parent_drawn_ = drawn; }
39 bool drawn() { return window_->drawn_; } 39 bool parent_drawn() { return window_->parent_drawn_; }
40 40
41 void set_id(Id id) { window_->id_ = id; } 41 void set_id(Id id) { window_->id_ = id; }
42 42
43 void set_connection(WindowTreeConnection* connection) { 43 void set_connection(WindowTreeConnection* connection) {
44 window_->connection_ = connection; 44 window_->connection_ = connection;
45 } 45 }
46 46
47 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) { 47 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) {
48 window_->properties_ = data; 48 window_->properties_ = data;
49 } 49 }
(...skipping 18 matching lines...) Expand all
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 LocalSetClientArea( 73 void LocalSetClientArea(
74 const gfx::Insets& client_area, 74 const gfx::Insets& client_area,
75 const std::vector<gfx::Rect>& additional_client_areas) { 75 const std::vector<gfx::Rect>& additional_client_areas) {
76 window_->LocalSetClientArea(client_area, additional_client_areas); 76 window_->LocalSetClientArea(client_area, additional_client_areas);
77 } 77 }
78 void LocalSetDrawn(bool drawn) { window_->LocalSetDrawn(drawn); } 78 void LocalSetParentDrawn(bool drawn) { window_->LocalSetParentDrawn(drawn); }
79 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); } 79 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); }
80 void LocalSetPredefinedCursor(mojom::Cursor cursor) { 80 void LocalSetPredefinedCursor(mojom::Cursor cursor) {
81 window_->LocalSetPredefinedCursor(cursor); 81 window_->LocalSetPredefinedCursor(cursor);
82 } 82 }
83 void LocalSetSharedProperty(const std::string& name, 83 void LocalSetSharedProperty(const std::string& name,
84 mojo::Array<uint8_t> new_data); 84 mojo::Array<uint8_t> new_data);
85 void LocalSetSharedProperty(const std::string& name, 85 void LocalSetSharedProperty(const std::string& name,
86 const std::vector<uint8_t>* data) { 86 const std::vector<uint8_t>* data) {
87 window_->LocalSetSharedProperty(name, data); 87 window_->LocalSetSharedProperty(name, data);
88 } 88 }
89 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } 89 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); }
90 90
91 private: 91 private:
92 Window* window_; 92 Window* window_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 94 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
95 }; 95 };
96 96
97 } // namespace mus 97 } // namespace mus
98 98
99 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 99 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window.cc ('k') | components/mus/public/cpp/lib/window_tree_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698