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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/devtools/ash_devtools_css_agent.h
diff --git a/ash/common/devtools/ash_devtools_css_agent.h b/ash/common/devtools/ash_devtools_css_agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..c957da51e3e151bf025b9a7cd106a0e094e7874d
--- /dev/null
+++ b/ash/common/devtools/ash_devtools_css_agent.h
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_
+#define ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_
+
+#include "ash/common/devtools/ash_devtools_dom_agent.h"
+#include "components/ui_devtools/CSS.h"
+
+namespace ash {
+namespace devtools {
+
+class ASH_EXPORT AshDevToolsCSSAgent
+ : public NON_EXPORTED_BASE(ui::devtools::UiDevToolsBaseAgent<
+ ui::devtools::protocol::CSS::Metainfo>) {
+ public:
+ explicit AshDevToolsCSSAgent(AshDevToolsDOMAgent* dom_agent);
+ ~AshDevToolsCSSAgent() override;
+
+ // CSS::Backend
+ ui::devtools::protocol::Response getMatchedStylesForNode(
+ int nodeId,
+ ui::devtools::protocol::Maybe<ui::devtools::protocol::CSS::CSSStyle>*
+ inlineStyle) override;
+
+ private:
+ std::unique_ptr<ui::devtools::protocol::CSS::CSSStyle> GetStylesForNode(
+ int nodeId);
+
+ AshDevToolsDOMAgent* dom_agent_;
+
+ DISALLOW_COPY_AND_ASSIGN(AshDevToolsCSSAgent);
+};
+
+} // namespace devtools
+} // namespace ash
+
+#endif // ASH_COMMON_DEVTOOLS_ASH_DEVTOOLS_CSS_AGENT_H_
« 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