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

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

Issue 8724002: Pass gamepad enable switch through to WebKit (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 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 | « no previous file | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 533
534 WebRuntimeFeatures::enableSpeechInput( 534 WebRuntimeFeatures::enableSpeechInput(
535 !command_line.HasSwitch(switches::kDisableSpeechInput)); 535 !command_line.HasSwitch(switches::kDisableSpeechInput));
536 536
537 WebRuntimeFeatures::enableFileSystem( 537 WebRuntimeFeatures::enableFileSystem(
538 !command_line.HasSwitch(switches::kDisableFileSystem)); 538 !command_line.HasSwitch(switches::kDisableFileSystem));
539 539
540 WebRuntimeFeatures::enableJavaScriptI18NAPI( 540 WebRuntimeFeatures::enableJavaScriptI18NAPI(
541 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI)); 541 !command_line.HasSwitch(switches::kDisableJavaScriptI18NAPI));
542 542
543 WebRuntimeFeatures::enableGamepad(
544 command_line.HasSwitch(switches::kEnableGamepad));
545
543 WebRuntimeFeatures::enableQuota(true); 546 WebRuntimeFeatures::enableQuota(true);
544 547
545 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized()); 548 FOR_EACH_OBSERVER(RenderProcessObserver, observers_, WebKitInitialized());
546 549
547 if (content::GetContentClient()->renderer()-> 550 if (content::GetContentClient()->renderer()->
548 RunIdleHandlerWhenWidgetsHidden()) { 551 RunIdleHandlerWhenWidgetsHidden()) {
549 ScheduleIdleHandler(kLongIdleHandlerDelayMs); 552 ScheduleIdleHandler(kLongIdleHandlerDelayMs);
550 } 553 }
551 } 554 }
552 555
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 850
848 scoped_refptr<base::MessageLoopProxy> 851 scoped_refptr<base::MessageLoopProxy>
849 RenderThreadImpl::GetFileThreadMessageLoopProxy() { 852 RenderThreadImpl::GetFileThreadMessageLoopProxy() {
850 DCHECK(message_loop() == MessageLoop::current()); 853 DCHECK(message_loop() == MessageLoop::current());
851 if (!file_thread_.get()) { 854 if (!file_thread_.get()) {
852 file_thread_.reset(new base::Thread("Renderer::FILE")); 855 file_thread_.reset(new base::Thread("Renderer::FILE"));
853 file_thread_->Start(); 856 file_thread_->Start();
854 } 857 }
855 return file_thread_->message_loop_proxy(); 858 return file_thread_->message_loop_proxy();
856 } 859 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698