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

Side by Side Diff: ui/views/views_switches.cc

Issue 266643003: linux_aura: Add a flag for experimenting with ARGB windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USE_X11 Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/views_switches.h" 5 #include "ui/views/views_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace views { 9 namespace views {
10 namespace switches { 10 namespace switches {
11 11
12 // Please keep alphabetized. 12 // Please keep alphabetized.
13 13
14 // Specifies if a heuristic should be used to determine the most probable 14 // Specifies if a heuristic should be used to determine the most probable
15 // target of a gesture, where the touch region is represented by a rectangle. 15 // target of a gesture, where the touch region is represented by a rectangle.
16 const char kDisableViewsRectBasedTargeting[] = 16 const char kDisableViewsRectBasedTargeting[] =
17 "disable-views-rect-based-targeting"; 17 "disable-views-rect-based-targeting";
18 18
19 #if defined(USE_X11) && !defined(OS_CHROMEOS)
20 // When enabled, tries to get a transparent X11 visual so that we can have
21 // per-pixel alpha in windows.
22 //
23 // TODO(erg): Remove this switch once we've stabilized the code
24 // path. http://crbug.com/369209
25 const char kEnableTransparentVisuals[] = "enable-transparent-visuals";
26 #endif
27
19 bool IsRectBasedTargetingEnabled() { 28 bool IsRectBasedTargetingEnabled() {
20 #if defined(OS_CHROMEOS) || defined(OS_WIN) 29 #if defined(OS_CHROMEOS) || defined(OS_WIN)
21 return !CommandLine::ForCurrentProcess()-> 30 return !CommandLine::ForCurrentProcess()->
22 HasSwitch(kDisableViewsRectBasedTargeting); 31 HasSwitch(kDisableViewsRectBasedTargeting);
23 #else 32 #else
24 return false; 33 return false;
25 #endif 34 #endif
26 } 35 }
27 36
28 } // namespace switches 37 } // namespace switches
29 } // namespace views 38 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/views_switches.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698