| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 //////////////////////////////////////////////////////////////////////////////// | 515 //////////////////////////////////////////////////////////////////////////////// |
| 516 // Window, private: | 516 // Window, private: |
| 517 | 517 |
| 518 Window::Window(WindowTreeConnection* connection, Id id) | 518 Window::Window(WindowTreeConnection* connection, Id id) |
| 519 : connection_(connection), | 519 : connection_(connection), |
| 520 server_id_(id), | 520 server_id_(id), |
| 521 parent_(nullptr), | 521 parent_(nullptr), |
| 522 stacking_target_(nullptr), | 522 stacking_target_(nullptr), |
| 523 transient_parent_(nullptr), | 523 transient_parent_(nullptr), |
| 524 is_modal_(false), | 524 is_modal_(false), |
| 525 // Matches aura, see aura::Window for details. |
| 526 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY), |
| 525 input_event_handler_(nullptr), | 527 input_event_handler_(nullptr), |
| 526 viewport_metrics_(CreateEmptyViewportMetrics()), | 528 viewport_metrics_(CreateEmptyViewportMetrics()), |
| 527 visible_(false), | 529 visible_(false), |
| 528 opacity_(1.0f), | 530 opacity_(1.0f), |
| 529 cursor_id_(mojom::Cursor::CURSOR_NULL), | 531 cursor_id_(mojom::Cursor::CURSOR_NULL), |
| 530 parent_drawn_(false) {} | 532 parent_drawn_(false) {} |
| 531 | 533 |
| 532 WindowTreeClientImpl* Window::tree_client() { | 534 WindowTreeClientImpl* Window::tree_client() { |
| 533 return static_cast<WindowTreeClientImpl*>(connection_); | 535 return static_cast<WindowTreeClientImpl*>(connection_); |
| 534 } | 536 } |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 notifier->NotifyWindowReordered(); | 872 notifier->NotifyWindowReordered(); |
| 871 | 873 |
| 872 return true; | 874 return true; |
| 873 } | 875 } |
| 874 | 876 |
| 875 // static | 877 // static |
| 876 Window** Window::GetStackingTarget(Window* window) { | 878 Window** Window::GetStackingTarget(Window* window) { |
| 877 return &window->stacking_target_; | 879 return &window->stacking_target_; |
| 878 } | 880 } |
| 879 } // namespace mus | 881 } // namespace mus |
| OLD | NEW |