| OLD | NEW |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void SetClientArea(const gfx::Insets& insets, | 98 void SetClientArea(const gfx::Insets& insets, |
| 99 const std::vector<gfx::Rect>& additional_client_areas); | 99 const std::vector<gfx::Rect>& additional_client_areas); |
| 100 | 100 |
| 101 const gfx::Rect* hit_test_mask() const { return hit_test_mask_.get(); } | 101 const gfx::Rect* hit_test_mask() const { return hit_test_mask_.get(); } |
| 102 void SetHitTestMask(const gfx::Rect& mask); | 102 void SetHitTestMask(const gfx::Rect& mask); |
| 103 void ClearHitTestMask(); | 103 void ClearHitTestMask(); |
| 104 | 104 |
| 105 bool can_accept_drops() const { return accepts_drops_; } | 105 bool can_accept_drops() const { return accepts_drops_; } |
| 106 void SetCanAcceptDrops(bool accepts_drags); | 106 void SetCanAcceptDrops(bool accepts_drags); |
| 107 | 107 |
| 108 ui::mojom::Cursor cursor() const { return cursor_id_; } | 108 ui::mojom::CursorType cursor() const { return cursor_id_; } |
| 109 ui::mojom::Cursor non_client_cursor() const { | 109 ui::mojom::CursorType non_client_cursor() const { |
| 110 return non_client_cursor_id_; | 110 return non_client_cursor_id_; |
| 111 } | 111 } |
| 112 | 112 |
| 113 const ServerWindow* parent() const { return parent_; } | 113 const ServerWindow* parent() const { return parent_; } |
| 114 ServerWindow* parent() { return parent_; } | 114 ServerWindow* parent() { return parent_; } |
| 115 | 115 |
| 116 // NOTE: this returns null if the window does not have an ancestor associated | 116 // NOTE: this returns null if the window does not have an ancestor associated |
| 117 // with a display. | 117 // with a display. |
| 118 const ServerWindow* GetRoot() const; | 118 const ServerWindow* GetRoot() const; |
| 119 ServerWindow* GetRoot() { | 119 ServerWindow* GetRoot() { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 144 bool Contains(const ServerWindow* window) const; | 144 bool Contains(const ServerWindow* window) const; |
| 145 | 145 |
| 146 // Returns the visibility requested by this window. IsDrawn() returns whether | 146 // Returns the visibility requested by this window. IsDrawn() returns whether |
| 147 // the window is actually visible on screen. | 147 // the window is actually visible on screen. |
| 148 bool visible() const { return visible_; } | 148 bool visible() const { return visible_; } |
| 149 void SetVisible(bool value); | 149 void SetVisible(bool value); |
| 150 | 150 |
| 151 float opacity() const { return opacity_; } | 151 float opacity() const { return opacity_; } |
| 152 void SetOpacity(float value); | 152 void SetOpacity(float value); |
| 153 | 153 |
| 154 void SetPredefinedCursor(ui::mojom::Cursor cursor_id); | 154 void SetPredefinedCursor(ui::mojom::CursorType cursor_id); |
| 155 void SetNonClientCursor(ui::mojom::Cursor cursor_id); | 155 void SetNonClientCursor(ui::mojom::CursorType cursor_id); |
| 156 | 156 |
| 157 const gfx::Transform& transform() const { return transform_; } | 157 const gfx::Transform& transform() const { return transform_; } |
| 158 void SetTransform(const gfx::Transform& transform); | 158 void SetTransform(const gfx::Transform& transform); |
| 159 | 159 |
| 160 const std::map<std::string, std::vector<uint8_t>>& properties() const { | 160 const std::map<std::string, std::vector<uint8_t>>& properties() const { |
| 161 return properties_; | 161 return properties_; |
| 162 } | 162 } |
| 163 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); | 163 void SetProperty(const std::string& name, const std::vector<uint8_t>* value); |
| 164 | 164 |
| 165 std::string GetName() const; | 165 std::string GetName() const; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 ServerWindow* transient_parent_; | 245 ServerWindow* transient_parent_; |
| 246 Windows transient_children_; | 246 Windows transient_children_; |
| 247 | 247 |
| 248 ModalType modal_type_; | 248 ModalType modal_type_; |
| 249 bool visible_; | 249 bool visible_; |
| 250 gfx::Rect bounds_; | 250 gfx::Rect bounds_; |
| 251 gfx::Insets client_area_; | 251 gfx::Insets client_area_; |
| 252 std::vector<gfx::Rect> additional_client_areas_; | 252 std::vector<gfx::Rect> additional_client_areas_; |
| 253 std::unique_ptr<ServerWindowCompositorFrameSinkManager> | 253 std::unique_ptr<ServerWindowCompositorFrameSinkManager> |
| 254 compositor_frame_sink_manager_; | 254 compositor_frame_sink_manager_; |
| 255 mojom::Cursor cursor_id_; | 255 mojom::CursorType cursor_id_; |
| 256 mojom::Cursor non_client_cursor_id_; | 256 mojom::CursorType non_client_cursor_id_; |
| 257 float opacity_; | 257 float opacity_; |
| 258 bool can_focus_; | 258 bool can_focus_; |
| 259 mojom::EventTargetingPolicy event_targeting_policy_ = | 259 mojom::EventTargetingPolicy event_targeting_policy_ = |
| 260 mojom::EventTargetingPolicy::TARGET_AND_DESCENDANTS; | 260 mojom::EventTargetingPolicy::TARGET_AND_DESCENDANTS; |
| 261 gfx::Transform transform_; | 261 gfx::Transform transform_; |
| 262 ui::TextInputState text_input_state_; | 262 ui::TextInputState text_input_state_; |
| 263 | 263 |
| 264 Properties properties_; | 264 Properties properties_; |
| 265 | 265 |
| 266 gfx::Vector2d underlay_offset_; | 266 gfx::Vector2d underlay_offset_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 279 | 279 |
| 280 base::ObserverList<ServerWindowObserver> observers_; | 280 base::ObserverList<ServerWindowObserver> observers_; |
| 281 | 281 |
| 282 DISALLOW_COPY_AND_ASSIGN(ServerWindow); | 282 DISALLOW_COPY_AND_ASSIGN(ServerWindow); |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 } // namespace ws | 285 } // namespace ws |
| 286 } // namespace ui | 286 } // namespace ui |
| 287 | 287 |
| 288 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ | 288 #endif // SERVICES_UI_WS_SERVER_WINDOW_H_ |
| OLD | NEW |