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

Side by Side Diff: components/ui_devtools/devtools/window_element.h

Issue 2899783002: Move DevTools out of ash and turn it to a component. (Closed)
Patch Set: rebase Created 3 years, 6 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 #ifndef ASH_DEVTOOLS_WINDOW_ELEMENT_H_ 5 #ifndef COMPONENTS_UI_DEVTOOLS_DEVTOOLS_WINDOW_ELEMENT_H_
6 #define ASH_DEVTOOLS_WINDOW_ELEMENT_H_ 6 #define COMPONENTS_UI_DEVTOOLS_DEVTOOLS_WINDOW_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/aura/window_observer.h" 11 #include "ui/aura/window_observer.h"
13 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
14 13
15 namespace ash { 14 namespace ui {
16 namespace devtools { 15 namespace devtools {
17 16
18 class ASH_EXPORT WindowElement : public aura::WindowObserver, public UIElement { 17 class WindowElement : public aura::WindowObserver, public UIElement {
19 public: 18 public:
20 WindowElement(aura::Window* window, 19 WindowElement(aura::Window* window,
21 UIElementDelegate* ui_element_delegate, 20 UIElementDelegate* ui_element_delegate,
22 UIElement* parent); 21 UIElement* parent);
23 ~WindowElement() override; 22 ~WindowElement() override;
24 aura::Window* window() const { return window_; }; 23 aura::Window* window() const { return window_; };
25 24
26 // WindowObserver: 25 // WindowObserver:
27 void OnWindowHierarchyChanging( 26 void OnWindowHierarchyChanging(
28 const aura::WindowObserver::HierarchyChangeParams& params) override; 27 const aura::WindowObserver::HierarchyChangeParams& params) override;
(...skipping 13 matching lines...) Expand all
42 41
43 static aura::Window* From(UIElement* element); 42 static aura::Window* From(UIElement* element);
44 43
45 private: 44 private:
46 aura::Window* window_; 45 aura::Window* window_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(WindowElement); 47 DISALLOW_COPY_AND_ASSIGN(WindowElement);
49 }; 48 };
50 49
51 } // namespace devtools 50 } // namespace devtools
52 } // namespace ash 51 } // namespace ui
53 52
54 #endif // ASH_DEVTOOLS_WINDOW_ELEMENT_H_ 53 #endif // COMPONENTS_UI_DEVTOOLS_DEVTOOLS_WINDOW_ELEMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698