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

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

Issue 2672983003: Implements PrintBrowser mode. (Closed)
Patch Set: Rebase Created 3 years, 10 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
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 void WebRuntimeFeatures::enableSharedWorker(bool enable) { 285 void WebRuntimeFeatures::enableSharedWorker(bool enable) {
286 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable); 286 RuntimeEnabledFeatures::setSharedWorkerEnabled(enable);
287 } 287 }
288 288
289 void WebRuntimeFeatures::enablePreciseMemoryInfo(bool enable) { 289 void WebRuntimeFeatures::enablePreciseMemoryInfo(bool enable) {
290 RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable); 290 RuntimeEnabledFeatures::setPreciseMemoryInfoEnabled(enable);
291 } 291 }
292 292
293 void WebRuntimeFeatures::enablePrintBrowser(bool enable) {
294 RuntimeEnabledFeatures::setPrintBrowserEnabled(enable);
295 }
296
293 void WebRuntimeFeatures::enableCredentialManagerAPI(bool enable) { 297 void WebRuntimeFeatures::enableCredentialManagerAPI(bool enable) {
294 RuntimeEnabledFeatures::setCredentialManagerEnabled(enable); 298 RuntimeEnabledFeatures::setCredentialManagerEnabled(enable);
295 } 299 }
296 300
297 void WebRuntimeFeatures::enableV8IdleTasks(bool enable) { 301 void WebRuntimeFeatures::enableV8IdleTasks(bool enable) {
298 RuntimeEnabledFeatures::setV8IdleTasksEnabled(enable); 302 RuntimeEnabledFeatures::setV8IdleTasksEnabled(enable);
299 } 303 }
300 304
301 void WebRuntimeFeatures::enableReducedReferrerGranularity(bool enable) { 305 void WebRuntimeFeatures::enableReducedReferrerGranularity(bool enable) {
302 RuntimeEnabledFeatures::setReducedReferrerGranularityEnabled(enable); 306 RuntimeEnabledFeatures::setReducedReferrerGranularityEnabled(enable);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 378
375 void WebRuntimeFeatures::enableRemotePlaybackAPI(bool enable) { 379 void WebRuntimeFeatures::enableRemotePlaybackAPI(bool enable) {
376 RuntimeEnabledFeatures::setRemotePlaybackEnabled(enable); 380 RuntimeEnabledFeatures::setRemotePlaybackEnabled(enable);
377 } 381 }
378 382
379 void WebRuntimeFeatures::enableVideoFullscreenOrientationLock(bool enable) { 383 void WebRuntimeFeatures::enableVideoFullscreenOrientationLock(bool enable) {
380 RuntimeEnabledFeatures::setVideoFullscreenOrientationLockEnabled(enable); 384 RuntimeEnabledFeatures::setVideoFullscreenOrientationLockEnabled(enable);
381 } 385 }
382 386
383 } // namespace blink 387 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698