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

Side by Side Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 18578007: Add a public API to enable/disable blink runtime features by name (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Require a 'command_line_flag' option in RuntimeEnabledFeatures.in Created 7 years, 5 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/core/page/RuntimeEnabledFeatures.in » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable) 50 void WebRuntimeFeatures::enableExperimentalFeatures(bool enable)
51 { 51 {
52 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable); 52 RuntimeEnabledFeatures::setExperimentalFeaturesEnabled(enable);
53 } 53 }
54 54
55 void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable) 55 void WebRuntimeFeatures::enableTestOnlyFeatures(bool enable)
56 { 56 {
57 RuntimeEnabledFeatures::setTestFeaturesEnabled(enable); 57 RuntimeEnabledFeatures::setTestFeaturesEnabled(enable);
58 } 58 }
59 59
60 bool WebRuntimeFeatures::setFeatureEnabled(const WebString& feature, bool enable )
61 {
62 return RuntimeEnabledFeatures::setFeatureEnabled(feature, enable);
63 }
64
60 void WebRuntimeFeatures::enableApplicationCache(bool enable) 65 void WebRuntimeFeatures::enableApplicationCache(bool enable)
61 { 66 {
62 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable); 67 RuntimeEnabledFeatures::setApplicationCacheEnabled(enable);
63 } 68 }
64 69
65 bool WebRuntimeFeatures::isApplicationCacheEnabled() 70 bool WebRuntimeFeatures::isApplicationCacheEnabled()
66 { 71 {
67 return RuntimeEnabledFeatures::applicationCacheEnabled(); 72 return RuntimeEnabledFeatures::applicationCacheEnabled();
68 } 73 }
69 74
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 { 601 {
597 RuntimeEnabledFeatures::setInputTypeColorEnabled(enable); 602 RuntimeEnabledFeatures::setInputTypeColorEnabled(enable);
598 } 603 }
599 604
600 bool WebRuntimeFeatures::isInputTypeColorEnabled() 605 bool WebRuntimeFeatures::isInputTypeColorEnabled()
601 { 606 {
602 return RuntimeEnabledFeatures::inputTypeColorEnabled(); 607 return RuntimeEnabledFeatures::inputTypeColorEnabled();
603 } 608 }
604 609
605 } // namespace WebKit 610 } // namespace WebKit
OLDNEW
« no previous file with comments | « no previous file | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698