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

Side by Side Diff: services/ui/ws/server_window.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/ws/platform_display_init_params.cc ('k') | services/ui/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 SERVICES_UI_WS_SERVER_WINDOW_H_ 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_H_
6 #define SERVICES_UI_WS_SERVER_WINDOW_H_ 6 #define SERVICES_UI_WS_SERVER_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const gfx::Transform& transform() const { return transform_; } 139 const gfx::Transform& transform() const { return transform_; }
140 void SetTransform(const gfx::Transform& transform); 140 void SetTransform(const gfx::Transform& transform);
141 141
142 const std::map<std::string, std::vector<uint8_t>>& properties() const { 142 const std::map<std::string, std::vector<uint8_t>>& properties() const {
143 return properties_; 143 return properties_;
144 } 144 }
145 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); 145 void SetProperty(const std::string& name, const std::vector<uint8_t>* value);
146 146
147 std::string GetName() const; 147 std::string GetName() const;
148 148
149 bool IsContainer() const;
150
149 void SetTextInputState(const ui::TextInputState& state); 151 void SetTextInputState(const ui::TextInputState& state);
150 const ui::TextInputState& text_input_state() const { 152 const ui::TextInputState& text_input_state() const {
151 return text_input_state_; 153 return text_input_state_;
152 } 154 }
153 155
154 void set_can_focus(bool can_focus) { can_focus_ = can_focus; } 156 void set_can_focus(bool can_focus) { can_focus_ = can_focus; }
155 bool can_focus() const { return can_focus_; } 157 bool can_focus() const { return can_focus_; }
156 158
157 void set_can_accept_events(bool value) { can_accept_events_ = value; } 159 void set_can_accept_events(bool value) { can_accept_events_ = value; }
158 bool can_accept_events() const { return can_accept_events_; } 160 bool can_accept_events() const { return can_accept_events_; }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 255
254 base::ObserverList<ServerWindowObserver> observers_; 256 base::ObserverList<ServerWindowObserver> observers_;
255 257
256 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 258 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
257 }; 259 };
258 260
259 } // namespace ws 261 } // namespace ws
260 } // namespace ui 262 } // namespace ui
261 263
262 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ 264 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_init_params.cc ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698