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 #ifndef ASH_DEVTOOLS_WIDGET_ELEMENT_H_ | 5 #ifndef COMPONENTS_UI_DEVTOOLS_DEVTOOLS_WIDGET_ELEMENT_H_ |
6 #define ASH_DEVTOOLS_WIDGET_ELEMENT_H_ | 6 #define COMPONETNS_UI_DEVTOOLS_DEVTOOLS_WIDGET_ELEMENT_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | |
9 #include "ash/devtools/ui_element.h" | |
10 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/ui_devtools/devtools/ui_element.h" |
11 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
12 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/views/widget/widget.h" | 12 #include "ui/views/widget/widget.h" |
14 #include "ui/views/widget/widget_observer.h" | 13 #include "ui/views/widget/widget_observer.h" |
15 #include "ui/views/widget/widget_removals_observer.h" | 14 #include "ui/views/widget/widget_removals_observer.h" |
16 | 15 |
17 namespace ash { | 16 namespace ui { |
18 namespace devtools { | 17 namespace devtools { |
19 | 18 |
20 class UIElementDelegate; | 19 class UIElementDelegate; |
21 | 20 |
22 class ASH_EXPORT WidgetElement : public views::WidgetRemovalsObserver, | 21 class WidgetElement : public views::WidgetRemovalsObserver, |
23 public views::WidgetObserver, | 22 public views::WidgetObserver, |
24 public UIElement { | 23 public UIElement { |
25 public: | 24 public: |
26 WidgetElement(views::Widget* widget, | 25 WidgetElement(views::Widget* widget, |
27 UIElementDelegate* ui_element_delegate, | 26 UIElementDelegate* ui_element_delegate, |
28 UIElement* parent); | 27 UIElement* parent); |
29 ~WidgetElement() override; | 28 ~WidgetElement() override; |
30 views::Widget* widget() const { return widget_; }; | 29 views::Widget* widget() const { return widget_; }; |
31 | 30 |
32 // views::WidgetRemovalsObserver: | 31 // views::WidgetRemovalsObserver: |
33 void OnWillRemoveView(views::Widget* widget, views::View* view) override; | 32 void OnWillRemoveView(views::Widget* widget, views::View* view) override; |
34 | 33 |
(...skipping 11 matching lines...) Expand all Loading... |
46 | 45 |
47 static views::Widget* From(UIElement* element); | 46 static views::Widget* From(UIElement* element); |
48 | 47 |
49 private: | 48 private: |
50 views::Widget* widget_; | 49 views::Widget* widget_; |
51 | 50 |
52 DISALLOW_COPY_AND_ASSIGN(WidgetElement); | 51 DISALLOW_COPY_AND_ASSIGN(WidgetElement); |
53 }; | 52 }; |
54 | 53 |
55 } // namespace devtools | 54 } // namespace devtools |
56 } // namespace ash | 55 } // namespace ui |
57 | 56 |
58 #endif // ASH_DEVTOOLS_WIDGET_ELEMENT_H_ | 57 #endif // COMPONENTS_UI_DEVTOOLS_DEVTOOLS_WIDGET_ELEMENT_H_ |
OLD | NEW |