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

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

Issue 2739523002: Ash devtools: Add support for changing visibility. (Closed)
Patch Set: . Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
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 84f645d2b940daf7a7d67efd7cd6e39145415f86..1f19b54ce4584a97dbea903274a7011e30ae4531 100644
--- a/ash/common/devtools/ash_devtools_css_agent.h
+++ b/ash/common/devtools/ash_devtools_css_agent.h
@@ -43,8 +43,14 @@ 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);
+ bool GetNodeIdProperties(int node_id, gfx::Rect* bounds, bool* visible);
varkha 2017/03/08 15:23:59 GetPropertiesForNodeId
thanhph 2017/03/09 16:30:58 Done.
+ bool UpdateObjectProperties(int node_id,
varkha 2017/03/08 15:23:59 [Set|Update]PropertiesForNodeId
thanhph 2017/03/09 16:30:58 Done, I use SetPropertiesForNodeId(). Thanks!
+ const gfx::Rect& bounds,
+ const bool& visible);
+ ui::devtools::protocol::Response ParseProperties(
+ const std::string& style_text,
+ gfx::Rect* bounds,
+ bool* visible);
varkha 2017/03/08 15:23:59 What was the reason to make this into a class meth
thanhph 2017/03/09 16:30:58 Yes it uses |this->dom_agent_| to retrieve either
AshDevToolsDOMAgent* dom_agent_;
« no previous file with comments | « no previous file | ash/common/devtools/ash_devtools_css_agent.cc » ('j') | ash/common/devtools/ash_devtools_css_agent.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698