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

Side by Side Diff: Source/web/WebRuntimeFeatures.cpp

Issue 91313002: Add a runtime flag for navigator content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 void WebRuntimeFeatures::enableNotifications(bool enable) 263 void WebRuntimeFeatures::enableNotifications(bool enable)
264 { 264 {
265 RuntimeEnabledFeatures::setNotificationsEnabled(enable); 265 RuntimeEnabledFeatures::setNotificationsEnabled(enable);
266 } 266 }
267 267
268 bool WebRuntimeFeatures::isNotificationsEnabled() 268 bool WebRuntimeFeatures::isNotificationsEnabled()
269 { 269 {
270 return RuntimeEnabledFeatures::notificationsEnabled(); 270 return RuntimeEnabledFeatures::notificationsEnabled();
271 } 271 }
272 272
273 void WebRuntimeFeatures::enableNavigatorContentUtils(bool enable)
274 {
275 RuntimeEnabledFeatures::setNavigatorContentUtilsEnabled(enable);
276 }
277
278 bool WebRuntimeFeatures::isNavigatorContentUtilsEnabled()
279 {
280 return RuntimeEnabledFeatures::navigatorContentUtilsEnabled();
281 }
282
273 void WebRuntimeFeatures::enablePagePopup(bool enable) 283 void WebRuntimeFeatures::enablePagePopup(bool enable)
274 { 284 {
275 RuntimeEnabledFeatures::setPagePopupEnabled(enable); 285 RuntimeEnabledFeatures::setPagePopupEnabled(enable);
276 } 286 }
277 287
278 bool WebRuntimeFeatures::isPagePopupEnabled() 288 bool WebRuntimeFeatures::isPagePopupEnabled()
279 { 289 {
280 return RuntimeEnabledFeatures::pagePopupEnabled(); 290 return RuntimeEnabledFeatures::pagePopupEnabled();
281 } 291 }
282 292
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 { 459 {
450 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); 460 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
451 } 461 }
452 462
453 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable) 463 void WebRuntimeFeatures::enableRepaintAfterLayout(bool enable)
454 { 464 {
455 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable); 465 RuntimeEnabledFeatures::setRepaintAfterLayoutEnabled(enable);
456 } 466 }
457 467
458 } // namespace blink 468 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698