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

Side by Side Diff: trunk/src/android_webview/lib/main/aw_main_delegate.cc

Issue 23494033: Revert 221946 "[Android WebView] Enable spatial navigation / DPAD" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | « trunk/src/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java ('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 "android_webview/lib/main/aw_main_delegate.h" 5 #include "android_webview/lib/main/aw_main_delegate.h"
6 6
7 #include "android_webview/browser/aw_content_browser_client.h" 7 #include "android_webview/browser/aw_content_browser_client.h"
8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" 8 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h"
9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h" 9 #include "android_webview/browser/scoped_allow_wait_for_legacy_web_view_api.h"
10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h" 10 #include "android_webview/lib/aw_browser_dependency_factory_impl.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // WebView uses the Android system's scrollbars and overscroll glow. 57 // WebView uses the Android system's scrollbars and overscroll glow.
58 cl->AppendSwitch(switches::kHideScrollbars); 58 cl->AppendSwitch(switches::kHideScrollbars);
59 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); 59 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect);
60 60
61 // Not yet secure in single-process mode. 61 // Not yet secure in single-process mode.
62 cl->AppendSwitch(switches::kDisableExperimentalWebGL); 62 cl->AppendSwitch(switches::kDisableExperimentalWebGL);
63 63
64 // Ganesh backed 2D-Canvas is not yet working and causes crashes. 64 // Ganesh backed 2D-Canvas is not yet working and causes crashes.
65 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); 65 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas);
66 66
67 // File system API not supported (requires some new API; internal bug 6930981)
68 // TODO(joth): export and use switches::kDisableFileSystem
69 cl->AppendSwitch("disable-file-system");
70
71 // Enable D-PAD navigation for application compatibility.
72 // TODO(joth): export and use switches::EnableSpatialNavigation.
73 cl->AppendSwitch("enable-spatial-navigation");
74
75 return false; 67 return false;
76 } 68 }
77 69
78 void AwMainDelegate::PreSandboxStartup() { 70 void AwMainDelegate::PreSandboxStartup() {
79 // TODO(torne): When we have a separate renderer process, we need to handle 71 // TODO(torne): When we have a separate renderer process, we need to handle
80 // being passed open FDs for the resource paks here. 72 // being passed open FDs for the resource paks here.
81 } 73 }
82 74
83 void AwMainDelegate::SandboxInitialized(const std::string& process_type) { 75 void AwMainDelegate::SandboxInitialized(const std::string& process_type) {
84 // TODO(torne): Adjust linux OOM score here. 76 // TODO(torne): Adjust linux OOM score here.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 AwBrowserContext* browser_context) { 125 AwBrowserContext* browser_context) {
134 return AwGeolocationPermissionContext::Create(browser_context); 126 return AwGeolocationPermissionContext::Create(browser_context);
135 } 127 }
136 128
137 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( 129 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate(
138 content::WebContents* web_contents) { 130 content::WebContents* web_contents) {
139 return AwWebContentsViewDelegate::Create(web_contents); 131 return AwWebContentsViewDelegate::Create(web_contents);
140 } 132 }
141 133
142 } // namespace android_webview 134 } // namespace android_webview
OLDNEW
« no previous file with comments | « trunk/src/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698