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 "services/ui/ws/server_window.h" | 5 #include "services/ui/ws/server_window.h" |
6 | 6 |
7 #include <inttypes.h> | 7 #include <inttypes.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 id_(id), | 28 id_(id), |
29 parent_(nullptr), | 29 parent_(nullptr), |
30 stacking_target_(nullptr), | 30 stacking_target_(nullptr), |
31 transient_parent_(nullptr), | 31 transient_parent_(nullptr), |
32 is_modal_(false), | 32 is_modal_(false), |
33 visible_(false), | 33 visible_(false), |
34 cursor_id_(mojom::Cursor::CURSOR_NULL), | 34 cursor_id_(mojom::Cursor::CURSOR_NULL), |
35 non_client_cursor_id_(mojom::Cursor::CURSOR_NULL), | 35 non_client_cursor_id_(mojom::Cursor::CURSOR_NULL), |
36 opacity_(1), | 36 opacity_(1), |
37 can_focus_(true), | 37 can_focus_(true), |
| 38 accept_events_(true), |
38 properties_(properties), | 39 properties_(properties), |
39 // Don't notify newly added observers during notification. This causes | 40 // Don't notify newly added observers during notification. This causes |
40 // problems for code that adds an observer as part of an observer | 41 // problems for code that adds an observer as part of an observer |
41 // notification (such as ServerWindowDrawTracker). | 42 // notification (such as ServerWindowDrawTracker). |
42 observers_( | 43 observers_( |
43 base::ObserverList<ServerWindowObserver>::NOTIFY_EXISTING_ONLY) { | 44 base::ObserverList<ServerWindowObserver>::NOTIFY_EXISTING_ONLY) { |
44 DCHECK(delegate); // Must provide a delegate. | 45 DCHECK(delegate); // Must provide a delegate. |
45 } | 46 } |
46 | 47 |
47 ServerWindow::~ServerWindow() { | 48 ServerWindow::~ServerWindow() { |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 } | 462 } |
462 | 463 |
463 // static | 464 // static |
464 ServerWindow** ServerWindow::GetStackingTarget(ServerWindow* window) { | 465 ServerWindow** ServerWindow::GetStackingTarget(ServerWindow* window) { |
465 return &window->stacking_target_; | 466 return &window->stacking_target_; |
466 } | 467 } |
467 | 468 |
468 } // namespace ws | 469 } // namespace ws |
469 | 470 |
470 } // namespace ui | 471 } // namespace ui |
OLD | NEW |