OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "ash/devtools/ui_element.h" | 5 #include "components/ui_devtools/devtools/ui_element.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/devtools/ui_element_delegate.h" | 9 #include "components/ui_devtools/devtools/ui_element_delegate.h" |
10 #include "ash/devtools/view_element.h" | 10 #include "components/ui_devtools/devtools/view_element.h" |
11 #include "ash/devtools/widget_element.h" | 11 #include "components/ui_devtools/devtools/widget_element.h" |
12 #include "ash/devtools/window_element.h" | 12 #include "components/ui_devtools/devtools/window_element.h" |
13 | 13 |
14 namespace ash { | 14 namespace ui { |
15 namespace devtools { | 15 namespace devtools { |
16 namespace { | 16 namespace { |
17 | 17 |
18 static int node_ids = 0; | 18 static int node_ids = 0; |
19 | 19 |
20 } // namespace | 20 } // namespace |
21 | 21 |
22 std::string UIElement::GetTypeName() const { | 22 std::string UIElement::GetTypeName() const { |
23 switch (type_) { | 23 switch (type_) { |
24 case UIElementType::WINDOW: | 24 case UIElementType::WINDOW: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 delegate_->OnUIElementAdded(0, this); | 68 delegate_->OnUIElementAdded(0, this); |
69 } | 69 } |
70 | 70 |
71 UIElement::~UIElement() { | 71 UIElement::~UIElement() { |
72 for (auto* child : children_) | 72 for (auto* child : children_) |
73 delete child; | 73 delete child; |
74 children_.clear(); | 74 children_.clear(); |
75 } | 75 } |
76 | 76 |
77 } // namespace devtools | 77 } // namespace devtools |
78 } // namespace ash | 78 } // namespace ui |
OLD | NEW |