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

Side by Side Diff: components/mus/ws/server_window.h

Issue 1414943003: Moves move logic into WM instead of WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 5 years, 1 month 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 | « components/mus/ws/move_loop.cc ('k') | components/mus/ws/server_window.cc » ('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_WS_SERVER_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_H_ 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void SetOpacity(float value); 94 void SetOpacity(float value);
95 95
96 const gfx::Transform& transform() const { return transform_; } 96 const gfx::Transform& transform() const { return transform_; }
97 void SetTransform(const gfx::Transform& transform); 97 void SetTransform(const gfx::Transform& transform);
98 98
99 const std::map<std::string, std::vector<uint8_t>>& properties() const { 99 const std::map<std::string, std::vector<uint8_t>>& properties() const {
100 return properties_; 100 return properties_;
101 } 101 }
102 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); 102 void SetProperty(const std::string& name, const std::vector<uint8_t>* value);
103 103
104 bool is_draggable_window_container() const {
105 return is_draggable_window_container_;
106 }
107 void set_is_draggable_window_container(bool value) {
108 is_draggable_window_container_ = value;
109 }
110
111 void SetTextInputState(const ui::TextInputState& state); 104 void SetTextInputState(const ui::TextInputState& state);
112 const ui::TextInputState& text_input_state() const { 105 const ui::TextInputState& text_input_state() const {
113 return text_input_state_; 106 return text_input_state_;
114 } 107 }
115 108
116 // Returns true if this window is attached to a root and all ancestors are 109 // Returns true if this window is attached to a root and all ancestors are
117 // visible. 110 // visible.
118 bool IsDrawn() const; 111 bool IsDrawn() const;
119 112
120 // Returns the surface associated with this window. If a surface has not 113 // Returns the surface associated with this window. If a surface has not
(...skipping 19 matching lines...) Expand all
140 ServerWindow* parent_; 133 ServerWindow* parent_;
141 Windows children_; 134 Windows children_;
142 bool visible_; 135 bool visible_;
143 gfx::Rect bounds_; 136 gfx::Rect bounds_;
144 gfx::Rect client_area_; 137 gfx::Rect client_area_;
145 scoped_ptr<ServerWindowSurface> surface_; 138 scoped_ptr<ServerWindowSurface> surface_;
146 float opacity_; 139 float opacity_;
147 gfx::Transform transform_; 140 gfx::Transform transform_;
148 ui::TextInputState text_input_state_; 141 ui::TextInputState text_input_state_;
149 142
150 bool is_draggable_window_container_;
151
152 std::map<std::string, std::vector<uint8_t>> properties_; 143 std::map<std::string, std::vector<uint8_t>> properties_;
153 144
154 base::ObserverList<ServerWindowObserver> observers_; 145 base::ObserverList<ServerWindowObserver> observers_;
155 146
156 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 147 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
157 }; 148 };
158 149
159 } // namespace ws 150 } // namespace ws
160 151
161 } // namespace mus 152 } // namespace mus
162 153
163 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_ 154 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_
OLDNEW
« no previous file with comments | « components/mus/ws/move_loop.cc ('k') | components/mus/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698