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

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

Issue 721683002: Introduce option "code-compressed" to --v8-code-options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « content/public/common/web_preferences.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "third_party/WebKit/public/web/WebSettings.h" 10 #include "third_party/WebKit/public/web/WebSettings.h"
(...skipping 19 matching lines...) Expand all
30 WebSettings::EditingBehaviorUnix); 30 WebSettings::EditingBehaviorUnix);
31 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_ANDROID, 31 COMPILE_ASSERT_MATCHING_ENUMS(EDITING_BEHAVIOR_ANDROID,
32 WebSettings::EditingBehaviorAndroid); 32 WebSettings::EditingBehaviorAndroid);
33 33
34 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_OFF, 34 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_OFF,
35 WebSettings::V8CacheOptionsOff); 35 WebSettings::V8CacheOptionsOff);
36 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_PARSE, 36 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_PARSE,
37 WebSettings::V8CacheOptionsParse); 37 WebSettings::V8CacheOptionsParse);
38 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE, 38 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE,
39 WebSettings::V8CacheOptionsCode); 39 WebSettings::V8CacheOptionsCode);
40 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_CODE_COMPRESSED,
41 WebSettings::V8CacheOptionsCodeCompressed);
40 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_LAST, 42 COMPILE_ASSERT_MATCHING_ENUMS(V8_CACHE_OPTIONS_LAST,
41 WebSettings::V8CacheOptionsCode); 43 WebSettings::V8CacheOptionsCodeCompressed);
42 44
43 COMPILE_ASSERT_MATCHING_ENUMS(V8_SCRIPT_STREAMING_MODE_ALL, 45 COMPILE_ASSERT_MATCHING_ENUMS(V8_SCRIPT_STREAMING_MODE_ALL,
44 WebSettings::V8ScriptStreamingModeAll); 46 WebSettings::V8ScriptStreamingModeAll);
45 COMPILE_ASSERT_MATCHING_ENUMS( 47 COMPILE_ASSERT_MATCHING_ENUMS(
46 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER, 48 V8_SCRIPT_STREAMING_MODE_ONLY_ASYNC_AND_DEFER,
47 WebSettings::V8ScriptStreamingModeOnlyAsyncAndDefer); 49 WebSettings::V8ScriptStreamingModeOnlyAsyncAndDefer);
48 COMPILE_ASSERT_MATCHING_ENUMS( 50 COMPILE_ASSERT_MATCHING_ENUMS(
49 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING, 51 V8_SCRIPT_STREAMING_MODE_ALL_PLUS_BLOCK_PARSER_BLOCKING,
50 WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking); 52 WebSettings::V8ScriptStreamingModeAllPlusBlockParsingBlocking);
51 COMPILE_ASSERT_MATCHING_ENUMS( 53 COMPILE_ASSERT_MATCHING_ENUMS(
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 189 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
188 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 190 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
189 pictograph_font_family_map[kCommonScript] = 191 pictograph_font_family_map[kCommonScript] =
190 base::ASCIIToUTF16("Times New Roman"); 192 base::ASCIIToUTF16("Times New Roman");
191 } 193 }
192 194
193 WebPreferences::~WebPreferences() { 195 WebPreferences::~WebPreferences() {
194 } 196 }
195 197
196 } // namespace content 198 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698