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

Unified Diff: ash/common/devtools/ash_devtools_css_agent.h

Issue 2548103002: Make bounds editable through the CSS sidepanel (Closed)
Patch Set: sadruls comments Created 4 years 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 | « no previous file | 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
index 342f21071ac575ee4bd020c42cb147fceee2f66d..84f645d2b940daf7a7d67efd7cd6e39145415f86 100644
--- a/ash/common/devtools/ash_devtools_css_agent.h
+++ b/ash/common/devtools/ash_devtools_css_agent.h
@@ -27,6 +27,12 @@ class ASH_EXPORT AshDevToolsCSSAgent
int node_id,
ui::devtools::protocol::Maybe<ui::devtools::protocol::CSS::CSSStyle>*
inline_style) override;
+ ui::devtools::protocol::Response setStyleTexts(
+ std::unique_ptr<ui::devtools::protocol::Array<
+ ui::devtools::protocol::CSS::StyleDeclarationEdit>> edits,
+ std::unique_ptr<
+ ui::devtools::protocol::Array<ui::devtools::protocol::CSS::CSSStyle>>*
+ result) override;
// AshDevToolsDOMAgentObserver
void OnWindowBoundsChanged(WmWindow* window) override;
@@ -37,6 +43,8 @@ class ASH_EXPORT AshDevToolsCSSAgent
std::unique_ptr<ui::devtools::protocol::CSS::CSSStyle> GetStylesForNode(
int node_id);
void InvalidateStyleSheet(int node_id);
+ bool GetBoundsForNodeId(int node_id, gfx::Rect* bounds);
+ bool UpdateBounds(int node_id, const gfx::Rect& bounds);
AshDevToolsDOMAgent* dom_agent_;
« no previous file with comments | « no previous file | ash/common/devtools/ash_devtools_css_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698