Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: components/ui_devtools/devtools/ui_element.cc

Issue 2852733002: Duplicate -Move DevTools out of ash and turn it to a component. (Closed)
Patch Set: move unittest to ui/views Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/ui_devtools/devtools/ui_element.h ('k') | components/ui_devtools/devtools/ui_element_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698