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

Unified Diff: ui/views/views_switches.cc

Issue 2770603002: Add --draw-view-bounds-rects to draw bounds rects for all views. (Closed)
Patch Set: Review comments 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
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/views_switches.cc
diff --git a/ui/views/views_switches.cc b/ui/views/views_switches.cc
index 9fa09fc3c119f9da2f558206fffe87e73fe9dd9e..79fe2574aec3a54d270d5d6d8924241e58550a6d 100644
--- a/ui/views/views_switches.cc
+++ b/ui/views/views_switches.cc
@@ -17,6 +17,9 @@ namespace switches {
const char kDisableViewsRectBasedTargeting[] =
"disable-views-rect-based-targeting";
+// Draws a semitransparent rect to indicate the bounds of each view.
+const char kDrawViewBoundsRects[] = "draw-view-bounds-rects";
+
bool IsRectBasedTargetingEnabled() {
#if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_LINUX)
return !base::CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698