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

Side by Side Diff: public/web/WebSettings.h

Issue 1195763002: Cleanup: Remove experimental V8 cache strategies that we discarded. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add #if-guard for multi-CL change. Created 5 years, 6 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
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define WebSettings_h 32 #define WebSettings_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "../platform/WebSize.h" 35 #include "../platform/WebSize.h"
36 #include <unicode/uscript.h> 36 #include <unicode/uscript.h>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class WebString; 40 class WebString;
41 41
42 // Temporary #if guard for a multi-CL change across blink + Chrome.
43 // See crrev.com/1192323002 for details.
44 #define CLEANUP_V8_CACHE_OPTIONS_GUARD
45
42 // WebSettings is owned by the WebView and allows code to modify the settings fo r 46 // WebSettings is owned by the WebView and allows code to modify the settings fo r
43 // the WebView's page without any knowledge of WebCore itself. For the most par t, 47 // the WebView's page without any knowledge of WebCore itself. For the most par t,
44 // these functions have a 1:1 mapping with the methods in WebCore/page/Settings. h. 48 // these functions have a 1:1 mapping with the methods in WebCore/page/Settings. h.
45 class WebSettings { 49 class WebSettings {
46 public: 50 public:
47 enum ImageAnimationPolicy { 51 enum ImageAnimationPolicy {
48 ImageAnimationPolicyAllowed, 52 ImageAnimationPolicyAllowed,
49 ImageAnimationPolicyAnimateOnce, 53 ImageAnimationPolicyAnimateOnce,
50 ImageAnimationPolicyNoAnimation 54 ImageAnimationPolicyNoAnimation
51 }; 55 };
52 56
53 enum EditingBehavior { 57 enum EditingBehavior {
54 EditingBehaviorMac, 58 EditingBehaviorMac,
55 EditingBehaviorWin, 59 EditingBehaviorWin,
56 EditingBehaviorUnix, 60 EditingBehaviorUnix,
57 EditingBehaviorAndroid 61 EditingBehaviorAndroid
58 }; 62 };
59 63
60 enum V8CacheOptions { 64 enum V8CacheOptions {
61 V8CacheOptionsDefault, 65 V8CacheOptionsDefault,
66 V8CacheOptionsNone,
62 V8CacheOptionsParse, 67 V8CacheOptionsParse,
63 V8CacheOptionsCode, 68 V8CacheOptionsCode,
64 V8CacheOptionsCodeCompressed,
65 V8CacheOptionsNone,
66 V8CacheOptionsParseMemory,
67 V8CacheOptionsHeuristics,
68 V8CacheOptionsHeuristicsMobile,
69 V8CacheOptionsHeuristicsDefault,
70 V8CacheOptionsHeuristicsDefaultMobile,
71 V8CacheOptionsRecent,
72 V8CacheOptionsRecentSmall
73 }; 69 };
74 70
75 // Bit field values indicating available pointer types. Identical to 71 // Bit field values indicating available pointer types. Identical to
76 // blink::PointerType enums, enforced by compile-time assertions in 72 // blink::PointerType enums, enforced by compile-time assertions in
77 // AssertMatchingEnums.cpp. 73 // AssertMatchingEnums.cpp.
78 // TODO(mustaq): Move this into public/platform, like WebBlendMode. 74 // TODO(mustaq): Move this into public/platform, like WebBlendMode.
79 enum PointerType { 75 enum PointerType {
80 PointerTypeNone = 1 << 0, 76 PointerTypeNone = 1 << 0,
81 PointerTypeCoarse = 1 << 1, 77 PointerTypeCoarse = 1 << 1,
82 PointerTypeFine = 1 << 2 78 PointerTypeFine = 1 << 2
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 virtual void setWideViewportQuirkEnabled(bool) = 0; 266 virtual void setWideViewportQuirkEnabled(bool) = 0;
271 virtual void setXSSAuditorEnabled(bool) = 0; 267 virtual void setXSSAuditorEnabled(bool) = 0;
272 268
273 protected: 269 protected:
274 ~WebSettings() { } 270 ~WebSettings() { }
275 }; 271 };
276 272
277 } // namespace blink 273 } // namespace blink
278 274
279 #endif 275 #endif
OLDNEW
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698