| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/aura/window.h" | 5 #include "ui/aura/window.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 : port_owner_(std::move(port)), | 52 : port_owner_(std::move(port)), |
| 53 port_(port_owner_.get()), | 53 port_(port_owner_.get()), |
| 54 host_(nullptr), | 54 host_(nullptr), |
| 55 type_(ui::wm::WINDOW_TYPE_UNKNOWN), | 55 type_(ui::wm::WINDOW_TYPE_UNKNOWN), |
| 56 owned_by_parent_(true), | 56 owned_by_parent_(true), |
| 57 delegate_(delegate), | 57 delegate_(delegate), |
| 58 parent_(nullptr), | 58 parent_(nullptr), |
| 59 visible_(false), | 59 visible_(false), |
| 60 id_(kInitialId), | 60 id_(kInitialId), |
| 61 transparent_(false), | 61 transparent_(false), |
| 62 user_data_(nullptr), | |
| 63 ignore_events_(false), | 62 ignore_events_(false), |
| 64 // Don't notify newly added observers during notification. This causes | 63 // Don't notify newly added observers during notification. This causes |
| 65 // problems for code that adds an observer as part of an observer | 64 // problems for code that adds an observer as part of an observer |
| 66 // notification (such as the workspace code). | 65 // notification (such as the workspace code). |
| 67 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY) { | 66 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY) { |
| 68 SetTargetHandler(delegate_); | 67 SetTargetHandler(delegate_); |
| 69 } | 68 } |
| 70 | 69 |
| 71 Window::~Window() { | 70 Window::~Window() { |
| 72 // See comment in header as to why this is done. | 71 // See comment in header as to why this is done. |
| (...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 layer_name = "Unnamed Window"; | 1115 layer_name = "Unnamed Window"; |
| 1117 | 1116 |
| 1118 if (id_ != -1) | 1117 if (id_ != -1) |
| 1119 layer_name += " " + base::IntToString(id_); | 1118 layer_name += " " + base::IntToString(id_); |
| 1120 | 1119 |
| 1121 layer()->set_name(layer_name); | 1120 layer()->set_name(layer_name); |
| 1122 #endif | 1121 #endif |
| 1123 } | 1122 } |
| 1124 | 1123 |
| 1125 } // namespace aura | 1124 } // namespace aura |
| OLD | NEW |