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

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

Issue 2018823002: Eliminate WindowTreeConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@connection
Patch Set: . Created 4 years, 6 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 23 matching lines...) Expand all
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_parent_drawn(bool drawn) { window_->parent_drawn_ = drawn; } 38 void set_parent_drawn(bool drawn) { window_->parent_drawn_ = drawn; }
39 bool parent_drawn() { return window_->parent_drawn_; } 39 bool parent_drawn() { return window_->parent_drawn_; }
40 40
41 void set_server_id(Id id) { window_->server_id_ = id; } 41 void set_server_id(Id id) { window_->server_id_ = id; }
42 Id server_id() { return window_->server_id_; } 42 Id server_id() { return window_->server_id_; }
43 43
44 void set_connection(WindowTreeConnection* connection) { 44 void set_client(WindowTreeClient* client) {
45 window_->connection_ = connection; 45 window_->client_ = client;
46 } 46 }
47 47
48 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) { 48 void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) {
49 window_->properties_ = data; 49 window_->properties_ = data;
50 } 50 }
51 51
52 void LocalSetDisplay(int64_t new_display) { 52 void LocalSetDisplay(int64_t new_display) {
53 window_->LocalSetDisplay(new_display); 53 window_->LocalSetDisplay(new_display);
54 } 54 }
55 55
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 private: 92 private:
93 Window* window_; 93 Window* window_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 95 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
96 }; 96 };
97 97
98 } // namespace mus 98 } // namespace mus
99 99
100 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ 100 #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.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698