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

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: resource bundle loading 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 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 #endif 939 #endif
937 940
938 #if defined(OS_MACOSX) && !defined(OS_IOS) 941 #if defined(OS_MACOSX) && !defined(OS_IOS)
939 // Disables support for Core Animation plugins. This is triggered when 942 // Disables support for Core Animation plugins. This is triggered when
940 // accelerated compositing is disabled. See http://crbug.com/122430 . 943 // accelerated compositing is disabled. See http://crbug.com/122430 .
941 const char kDisableCoreAnimationPlugins[] = 944 const char kDisableCoreAnimationPlugins[] =
942 "disable-core-animation-plugins"; 945 "disable-core-animation-plugins";
943 #endif 946 #endif
944 947
945 #if defined(OS_WIN) 948 #if defined(OS_WIN)
946 // Device scale factor passed to certain processes like renderers, etc.
947 const char kDeviceScaleFactor[] = "device-scale-factor";
948
949 // Disable the Legacy Window which corresponds to the size of the WebContents. 949 // Disable the Legacy Window which corresponds to the size of the WebContents.
950 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; 950 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
951 951
952 // Enable the Win32K process mitigation policy for renderer processes which 952 // Enable the Win32K process mitigation policy for renderer processes which
953 // prevents them from invoking user32 and gdi32 system calls which enter 953 // prevents them from invoking user32 and gdi32 system calls which enter
954 // the kernel. This is only supported on Windows 8 and beyond. 954 // the kernel. This is only supported on Windows 8 and beyond.
955 const char kEnableWin32kRendererLockDown[] 955 const char kEnableWin32kRendererLockDown[]
956 = "enable_win32k_renderer_lockdown"; 956 = "enable_win32k_renderer_lockdown";
957 #endif 957 #endif
958 958
959 #if defined(ENABLE_PLUGINS) 959 #if defined(ENABLE_PLUGINS)
960 // Enables the plugin power saver feature. 960 // Enables the plugin power saver feature.
961 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; 961 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
962 #endif 962 #endif
963 963
964 // Don't dump stuff here, follow the same order as the header. 964 // Don't dump stuff here, follow the same order as the header.
965 965
966 } // namespace switches 966 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698