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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 10661030: Enable Pointer Lock by default, change about:flags option to multi-select. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 555
556 WebKit::WebRuntimeFeatures::enableMediaStream(true); 556 WebKit::WebRuntimeFeatures::enableMediaStream(true);
557 557
558 WebKit::WebRuntimeFeatures::enablePeerConnection( 558 WebKit::WebRuntimeFeatures::enablePeerConnection(
559 command_line.HasSwitch(switches::kEnablePeerConnection)); 559 command_line.HasSwitch(switches::kEnablePeerConnection));
560 560
561 WebKit::WebRuntimeFeatures::enableFullScreenAPI( 561 WebKit::WebRuntimeFeatures::enableFullScreenAPI(
562 !command_line.HasSwitch(switches::kDisableFullScreen)); 562 !command_line.HasSwitch(switches::kDisableFullScreen));
563 563
564 WebKit::WebRuntimeFeatures::enablePointerLock( 564 WebKit::WebRuntimeFeatures::enablePointerLock(
565 command_line.HasSwitch(switches::kEnablePointerLock)); 565 !command_line.HasSwitch(switches::kDisablePointerLock));
566 566
567 WebKit::WebRuntimeFeatures::enableVideoTrack( 567 WebKit::WebRuntimeFeatures::enableVideoTrack(
568 command_line.HasSwitch(switches::kEnableVideoTrack)); 568 command_line.HasSwitch(switches::kEnableVideoTrack));
569 569
570 WebKit::WebRuntimeFeatures::enableEncryptedMedia( 570 WebKit::WebRuntimeFeatures::enableEncryptedMedia(
571 command_line.HasSwitch(switches::kEnableEncryptedMedia)); 571 command_line.HasSwitch(switches::kEnableEncryptedMedia));
572 572
573 WebRuntimeFeatures::enableWebAudio( 573 WebRuntimeFeatures::enableWebAudio(
574 !command_line.HasSwitch(switches::kDisableWebAudio) && 574 !command_line.HasSwitch(switches::kDisableWebAudio) &&
575 media::IsMediaLibraryInitialized()); 575 media::IsMediaLibraryInitialized());
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 1020
1021 scoped_refptr<base::MessageLoopProxy> 1021 scoped_refptr<base::MessageLoopProxy>
1022 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 1022 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
1023 DCHECK(message_loop() == MessageLoop::current()); 1023 DCHECK(message_loop() == MessageLoop::current());
1024 if (!file_thread_.get()) { 1024 if (!file_thread_.get()) {
1025 file_thread_.reset(new base::Thread("Renderer::FILE")); 1025 file_thread_.reset(new base::Thread("Renderer::FILE"));
1026 file_thread_->Start(); 1026 file_thread_->Start();
1027 } 1027 }
1028 return file_thread_->message_loop_proxy(); 1028 return file_thread_->message_loop_proxy();
1029 } 1029 }
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698