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

Side by Side Diff: content/public/common/content_switches.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Path to the exe to run for the renderer and plugin subprocesses. 62 // Path to the exe to run for the renderer and plugin subprocesses.
63 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 63 const char kBrowserSubprocessPath[] = "browser-subprocess-path";
64 64
65 // Dumps extra logging about plugin loading to the log file. 65 // Dumps extra logging about plugin loading to the log file.
66 const char kDebugPluginLoading[] = "debug-plugin-loading"; 66 const char kDebugPluginLoading[] = "debug-plugin-loading";
67 67
68 // Sets the tile size used by composited layers. 68 // Sets the tile size used by composited layers.
69 const char kDefaultTileWidth[] = "default-tile-width"; 69 const char kDefaultTileWidth[] = "default-tile-width";
70 const char kDefaultTileHeight[] = "default-tile-height"; 70 const char kDefaultTileHeight[] = "default-tile-height";
71 71
72 // Device scale factor passed to certain processes like renderers, etc.
73 const char kDeviceScaleFactor[] = "device-scale-factor";
74
72 // Disable antialiasing on 2d canvas. 75 // Disable antialiasing on 2d canvas.
73 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; 76 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa";
74 77
75 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. 78 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D.
76 // This is controlled by policy and is kept separate from the other 79 // This is controlled by policy and is kept separate from the other
77 // enable/disable switches to avoid accidentally regressing the policy 80 // enable/disable switches to avoid accidentally regressing the policy
78 // support for controlling access to these APIs. 81 // support for controlling access to these APIs.
79 const char kDisable3DAPIs[] = "disable-3d-apis"; 82 const char kDisable3DAPIs[] = "disable-3d-apis";
80 83
81 // Disable gpu-accelerated 2d canvas. 84 // Disable gpu-accelerated 2d canvas.
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 const char kDisableCoreAnimationPlugins[] = 950 const char kDisableCoreAnimationPlugins[] =
948 "disable-core-animation-plugins"; 951 "disable-core-animation-plugins";
949 952
950 // Allows input events to be handed on the compositor thread. 953 // Allows input events to be handed on the compositor thread.
951 // This feature is under development, see http://crbug.com/138003. 954 // This feature is under development, see http://crbug.com/138003.
952 extern const char kEnableThreadedEventHandlingMac[] = 955 extern const char kEnableThreadedEventHandlingMac[] =
953 "enable-threaded-event-handling-mac"; 956 "enable-threaded-event-handling-mac";
954 #endif 957 #endif
955 958
956 #if defined(OS_WIN) 959 #if defined(OS_WIN)
957 // Device scale factor passed to certain processes like renderers, etc.
958 const char kDeviceScaleFactor[] = "device-scale-factor";
959
960 // Disable the Legacy Window which corresponds to the size of the WebContents. 960 // Disable the Legacy Window which corresponds to the size of the WebContents.
961 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; 961 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
962 962
963 // Enable the Win32K process mitigation policy for renderer processes which 963 // Enable the Win32K process mitigation policy for renderer processes which
964 // prevents them from invoking user32 and gdi32 system calls which enter 964 // prevents them from invoking user32 and gdi32 system calls which enter
965 // the kernel. This is only supported on Windows 8 and beyond. 965 // the kernel. This is only supported on Windows 8 and beyond.
966 const char kEnableWin32kRendererLockDown[] 966 const char kEnableWin32kRendererLockDown[]
967 = "enable_win32k_renderer_lockdown"; 967 = "enable_win32k_renderer_lockdown";
968 #endif 968 #endif
969 969
970 #if defined(ENABLE_PLUGINS) 970 #if defined(ENABLE_PLUGINS)
971 // Enables the plugin power saver feature. 971 // Enables the plugin power saver feature.
972 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; 972 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
973 #endif 973 #endif
974 974
975 // Don't dump stuff here, follow the same order as the header. 975 // Don't dump stuff here, follow the same order as the header.
976 976
977 } // namespace switches 977 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698