| 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 #include "components/mus/public/cpp/window.h" | 5 #include "components/mus/public/cpp/window.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 : connection_(connection), | 498 : connection_(connection), |
| 499 id_(id), | 499 id_(id), |
| 500 parent_(nullptr), | 500 parent_(nullptr), |
| 501 stacking_target_(nullptr), | 501 stacking_target_(nullptr), |
| 502 transient_parent_(nullptr), | 502 transient_parent_(nullptr), |
| 503 is_modal_(false), | 503 is_modal_(false), |
| 504 input_event_handler_(nullptr), | 504 input_event_handler_(nullptr), |
| 505 viewport_metrics_(CreateEmptyViewportMetrics()), | 505 viewport_metrics_(CreateEmptyViewportMetrics()), |
| 506 visible_(false), | 506 visible_(false), |
| 507 cursor_id_(mojom::Cursor::CURSOR_NULL), | 507 cursor_id_(mojom::Cursor::CURSOR_NULL), |
| 508 drawn_(false) {} | 508 drawn_(false) { |
| 509 LOG(ERROR) << "JAMES new mus::Window"; |
| 510 } |
| 509 | 511 |
| 510 WindowTreeClientImpl* Window::tree_client() { | 512 WindowTreeClientImpl* Window::tree_client() { |
| 511 return static_cast<WindowTreeClientImpl*>(connection_); | 513 return static_cast<WindowTreeClientImpl*>(connection_); |
| 512 } | 514 } |
| 513 | 515 |
| 514 void Window::SetSharedPropertyInternal(const std::string& name, | 516 void Window::SetSharedPropertyInternal(const std::string& name, |
| 515 const std::vector<uint8_t>* value) { | 517 const std::vector<uint8_t>* value) { |
| 516 if (!OwnsWindowOrIsRoot(this)) | 518 if (!OwnsWindowOrIsRoot(this)) |
| 517 return; | 519 return; |
| 518 | 520 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 notifier->NotifyWindowReordered(); | 840 notifier->NotifyWindowReordered(); |
| 839 | 841 |
| 840 return true; | 842 return true; |
| 841 } | 843 } |
| 842 | 844 |
| 843 // static | 845 // static |
| 844 Window** Window::GetStackingTarget(Window* window) { | 846 Window** Window::GetStackingTarget(Window* window) { |
| 845 return &window->stacking_target_; | 847 return &window->stacking_target_; |
| 846 } | 848 } |
| 847 } // namespace mus | 849 } // namespace mus |
| OLD | NEW |