OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 #else | 1172 #else |
1173 // Enable print preview (no PDF viewer, thus not supported with Chromium). | 1173 // Enable print preview (no PDF viewer, thus not supported with Chromium). |
1174 const char kEnablePrintPreview[] = "enable-print-preview"; | 1174 const char kEnablePrintPreview[] = "enable-print-preview"; |
1175 | 1175 |
1176 bool IsPrintPreviewEnabled() { | 1176 bool IsPrintPreviewEnabled() { |
1177 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); | 1177 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); |
1178 } | 1178 } |
1179 #endif | 1179 #endif |
1180 | 1180 |
1181 bool IsInBrowserThumbnailingEnabled() { | 1181 bool IsInBrowserThumbnailingEnabled() { |
| 1182 #if defined(OS_LINUX) || defined(OS_CHROMEOS) |
| 1183 // The in-browser-thumbnailing is enabled for Linux and Chrome OS. |
| 1184 return true; |
| 1185 #else |
1182 return CommandLine::ForCurrentProcess()->HasSwitch( | 1186 return CommandLine::ForCurrentProcess()->HasSwitch( |
1183 kEnableInBrowserThumbnailing); | 1187 kEnableInBrowserThumbnailing); |
| 1188 #endif |
1184 } | 1189 } |
1185 | 1190 |
1186 // ----------------------------------------------------------------------------- | 1191 // ----------------------------------------------------------------------------- |
1187 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1192 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1188 // | 1193 // |
1189 // You were going to just dump your switches here, weren't you? Instead, | 1194 // You were going to just dump your switches here, weren't you? Instead, |
1190 // please put them in alphabetical order above, or in order inside the | 1195 // please put them in alphabetical order above, or in order inside the |
1191 // appropriate ifdef at the bottom. The order should match the header. | 1196 // appropriate ifdef at the bottom. The order should match the header. |
1192 // ----------------------------------------------------------------------------- | 1197 // ----------------------------------------------------------------------------- |
1193 | 1198 |
1194 } // namespace switches | 1199 } // namespace switches |
OLD | NEW |