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

Side by Side Diff: ash/common/devtools/ash_devtools_css_agent.h

Issue 2486543003: Add CSS agent for various window/widget/view attributes in devtools (Closed)
Patch Set: sadruls comments Created 4 years, 1 month 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/devtools/ash_devtools_css_agent.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_
6 #define ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_
7
8 #include "ash/common/devtools/ash_devtools_dom_agent.h"
9 #include "components/ui_devtools/CSS.h"
10
11 namespace ash {
12 namespace devtools {
13
14 class ASH_EXPORT AshDevToolsCSSAgent
15 : public NON_EXPORTED_BASE(ui::devtools::UiDevToolsBaseAgent<
16 ui::devtools::protocol::CSS::Metainfo>) {
17 public:
18 explicit AshDevToolsCSSAgent(AshDevToolsDOMAgent* dom_agent);
19 ~AshDevToolsCSSAgent() override;
20
21 // CSS::Backend
22 ui::devtools::protocol::Response getMatchedStylesForNode(
23 int nodeId,
24 ui::devtools::protocol::Maybe<ui::devtools::protocol::CSS::CSSStyle>*
25 inlineStyle) override;
26
27 private:
28 std::unique_ptr<ui::devtools::protocol::CSS::CSSStyle> GetStylesForNode(
29 int nodeId);
30
31 AshDevToolsDOMAgent* dom_agent_;
32
33 DISALLOW_COPY_AND_ASSIGN(AshDevToolsCSSAgent);
34 };
35
36 } // namespace devtools
37 } // namespace ash
38
39 #endif // ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/devtools/ash_devtools_css_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698