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

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

Issue 1568263003: Changes top level window creation to include window state in callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn Created 4 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 | « no previous file | components/mus/public/cpp/lib/window_tree_client_impl.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 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 18 matching lines...) Expand all
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_drawn(bool drawn) { window_->drawn_ = drawn; }
39 bool drawn() { return window_->drawn_; }
39 40
40 void set_id(Id id) { window_->id_ = id; } 41 void set_id(Id id) { window_->id_ = id; }
41 42
42 void set_connection(WindowTreeConnection* connection) { 43 void set_connection(WindowTreeConnection* connection) {
43 window_->connection_ = connection; 44 window_->connection_ = connection;
44 } 45 }
45 46
46 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) {
47 window_->properties_ = data; 48 window_->properties_ = data;
48 } 49 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 89
89 private: 90 private:
90 Window* window_; 91 Window* window_;
91 92
92 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 93 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
93 }; 94 };
94 95
95 } // namespace mus 96 } // namespace mus
96 97
97 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 98 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_
OLDNEW
« no previous file with comments | « no previous file | 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