Chromium Code Reviews
DescriptionAdd hovering feature to AshDevToolsDOMAgent
Hovering over any element in the frontend inspector will now highlight
the corresponding Ash window/widget/view. The highlight and border
color is whatever DevTools provides us in the highlightConfig. Currently,
this is a slightly transparent light blue overlay with a dark yellow
border.
How this is done:
- Create a widget in the primary root window under the OverlayContainer.
- Whenever a node is highlighted, call AshDevToolsDOMAgent::HighlightNode
on the main thread, which then determines where the object is (i.e: bounds)
and what display it is on.
- The parent |window| for the the |widget| that we created will update its
bounds and the |root_view| of the widget has its border/background color
updated to those provided in the highlightConfig.
- When no node is being hovered over, hideHighlight is called by the frontend
and we simply hide the widget.
- We also do not want to show the |widget| in the DOM tree, so if we ever
encounter its parent |window|, it will be ignored.
BUG=648701
Committed: https://crrev.com/ae977ac4847526a5674b7898617369e6d272cde7
Cr-Commit-Position: refs/heads/master@{#437069}
Patch Set 1 #Patch Set 2 : Add hovering feature to AshDevToolsDOMAgent #Patch Set 3 : Add hovering feature to AshDevToolsDOMAgent #Patch Set 4 : Update highlighting widget name #
Total comments: 14
Patch Set 5 : Add main_thread_task_runner to devtools_server and remove it from agent, also fix small bug #Patch Set 6 : Add main_thread_task_runner to devtools_server and remove it from agent, also fix small bug #Patch Set 7 : Remove UI_DEVTOOLS_EXPORT, will fix later #
Total comments: 1
Patch Set 8 : Mask colors when converting RGBA to SkColor #
Dependent Patchsets: Messages
Total messages: 32 (24 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||