OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ASH_DEVTOOLS_CSS_AGENT_H_ | 5 #ifndef ASH_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_ |
6 #define ASH_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_ | 6 #define ASH_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_ |
7 | 7 |
8 #include "ash/devtools/ash_devtools_dom_agent.h" | 8 #include "ash/devtools/ash_devtools_dom_agent.h" |
9 #include "components/ui_devtools/CSS.h" | 9 #include "components/ui_devtools/CSS.h" |
10 #include "ui/views/widget/widget_observer.h" | 10 #include "ui/views/widget/widget_observer.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 ui::devtools::protocol::Maybe<ui::devtools::protocol::CSS::CSSStyle>* | 28 ui::devtools::protocol::Maybe<ui::devtools::protocol::CSS::CSSStyle>* |
29 inline_style) override; | 29 inline_style) override; |
30 ui::devtools::protocol::Response setStyleTexts( | 30 ui::devtools::protocol::Response setStyleTexts( |
31 std::unique_ptr<ui::devtools::protocol::Array< | 31 std::unique_ptr<ui::devtools::protocol::Array< |
32 ui::devtools::protocol::CSS::StyleDeclarationEdit>> edits, | 32 ui::devtools::protocol::CSS::StyleDeclarationEdit>> edits, |
33 std::unique_ptr< | 33 std::unique_ptr< |
34 ui::devtools::protocol::Array<ui::devtools::protocol::CSS::CSSStyle>>* | 34 ui::devtools::protocol::Array<ui::devtools::protocol::CSS::CSSStyle>>* |
35 result) override; | 35 result) override; |
36 | 36 |
37 // AshDevToolsDOMAgentObserver | 37 // AshDevToolsDOMAgentObserver |
38 void OnWindowBoundsChanged(WmWindow* window) override; | 38 void OnWindowBoundsChanged(aura::Window* window) override; |
39 void OnWidgetBoundsChanged(views::Widget* widget) override; | 39 void OnWidgetBoundsChanged(views::Widget* widget) override; |
40 void OnViewBoundsChanged(views::View* view) override; | 40 void OnViewBoundsChanged(views::View* view) override; |
41 | 41 |
42 private: | 42 private: |
43 std::unique_ptr<ui::devtools::protocol::CSS::CSSStyle> GetStylesForNode( | 43 std::unique_ptr<ui::devtools::protocol::CSS::CSSStyle> GetStylesForNode( |
44 int node_id); | 44 int node_id); |
45 void InvalidateStyleSheet(int node_id); | 45 void InvalidateStyleSheet(int node_id); |
46 bool GetPropertiesForNodeId(int node_id, gfx::Rect* bounds, bool* visible); | 46 bool GetPropertiesForNodeId(int node_id, gfx::Rect* bounds, bool* visible); |
47 bool SetPropertiesForNodeId(int node_id, | 47 bool SetPropertiesForNodeId(int node_id, |
48 const gfx::Rect& bounds, | 48 const gfx::Rect& bounds, |
49 bool visible); | 49 bool visible); |
50 AshDevToolsDOMAgent* dom_agent_; | 50 AshDevToolsDOMAgent* dom_agent_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(AshDevToolsCSSAgent); | 52 DISALLOW_COPY_AND_ASSIGN(AshDevToolsCSSAgent); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace devtools | 55 } // namespace devtools |
56 } // namespace ash | 56 } // namespace ash |
57 | 57 |
58 #endif // ASH_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_ | 58 #endif // ASH_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_ |
OLD | NEW |