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

Side by Side Diff: Source/WebKit/chromium/public/WebRuntimeFeatures.h

Issue 14950002: Add enable*Features functions in preparation for using them in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Used the wrong macro for UNUSED, fixed. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp » ('j') | 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 23 matching lines...) Expand all
34 #include "../../../Platform/chromium/public/WebCommon.h" 34 #include "../../../Platform/chromium/public/WebCommon.h"
35 35
36 namespace WebKit { 36 namespace WebKit {
37 37
38 // This class is used to enable runtime features of WebKit. It is unspecified 38 // This class is used to enable runtime features of WebKit. It is unspecified
39 // whether a feature is enabled by default. In the future, a feature may be 39 // whether a feature is enabled by default. In the future, a feature may be
40 // promoted from disabled by default to enabled by default once it reaches a 40 // promoted from disabled by default to enabled by default once it reaches a
41 // certain level of maturity. 41 // certain level of maturity.
42 class WebRuntimeFeatures { 42 class WebRuntimeFeatures {
43 public: 43 public:
44 WEBKIT_EXPORT static void enableStableFeatures(bool);
45 WEBKIT_EXPORT static void enableExperimentalFeatures(bool);
46 WEBKIT_EXPORT static void enableTestOnlyFeatures(bool);
47
44 WEBKIT_EXPORT static void enableDatabase(bool); 48 WEBKIT_EXPORT static void enableDatabase(bool);
45 WEBKIT_EXPORT static bool isDatabaseEnabled(); 49 WEBKIT_EXPORT static bool isDatabaseEnabled();
46 50
47 WEBKIT_EXPORT static void enableLocalStorage(bool); 51 WEBKIT_EXPORT static void enableLocalStorage(bool);
48 WEBKIT_EXPORT static bool isLocalStorageEnabled(); 52 WEBKIT_EXPORT static bool isLocalStorageEnabled();
49 53
50 WEBKIT_EXPORT static void enableSessionStorage(bool); 54 WEBKIT_EXPORT static void enableSessionStorage(bool);
51 WEBKIT_EXPORT static bool isSessionStorageEnabled(); 55 WEBKIT_EXPORT static bool isSessionStorageEnabled();
52 56
53 WEBKIT_EXPORT static void enableMediaPlayer(bool); 57 WEBKIT_EXPORT static void enableMediaPlayer(bool);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 WEBKIT_EXPORT static void enableSpeechSynthesis(bool); 186 WEBKIT_EXPORT static void enableSpeechSynthesis(bool);
183 WEBKIT_EXPORT static bool isSpeechSynthesisEnabled(); 187 WEBKIT_EXPORT static bool isSpeechSynthesisEnabled();
184 188
185 private: 189 private:
186 WebRuntimeFeatures(); 190 WebRuntimeFeatures();
187 }; 191 };
188 192
189 } // namespace WebKit 193 } // namespace WebKit
190 194
191 #endif 195 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebKit/chromium/src/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698