OLD | NEW |
---|---|
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 gpu::InProcessCommandBuffer::SetGpuMemoryBufferFactory( | 49 gpu::InProcessCommandBuffer::SetGpuMemoryBufferFactory( |
50 gpu_memory_buffer_factory_.get()); | 50 gpu_memory_buffer_factory_.get()); |
51 gpu::InProcessCommandBuffer::EnableVirtualizedContext(); | 51 gpu::InProcessCommandBuffer::EnableVirtualizedContext(); |
52 | 52 |
53 CommandLine* cl = CommandLine::ForCurrentProcess(); | 53 CommandLine* cl = CommandLine::ForCurrentProcess(); |
54 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); | 54 cl->AppendSwitch(switches::kEnableBeginFrameScheduling); |
55 if (!cl->HasSwitch("disable-map-image")) | 55 if (!cl->HasSwitch("disable-map-image")) |
56 cl->AppendSwitch(cc::switches::kUseMapImage); | 56 cl->AppendSwitch(cc::switches::kUseMapImage); |
57 | 57 |
58 // WebView uses the Android system's scrollbars and overscroll glow. | 58 // WebView uses the Android system's scrollbars and overscroll glow. |
59 cl->AppendSwitch(switches::kHideScrollbars); | 59 string hide_scrollbar_switch(cc::switches::kSolidColorScrollbarColor); |
enne (OOO)
2013/08/28 18:22:08
I don't understand what changing kHideScrollbars t
wjmaclean
2013/08/28 20:51:46
Done.
Removed. If there's any desire to control t
| |
60 hide_scrollbar_switch.append("=0x00000000"); | |
61 cl->AppendSwitch(hide_scrollbar_switch); | |
60 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); | 62 cl->AppendSwitch(switches::kDisableOverscrollEdgeEffect); |
61 | 63 |
62 // Not yet secure in single-process mode. | 64 // Not yet secure in single-process mode. |
63 cl->AppendSwitch(switches::kDisableExperimentalWebGL); | 65 cl->AppendSwitch(switches::kDisableExperimentalWebGL); |
64 | 66 |
65 // Ganesh backed 2D-Canvas is not yet working and causes crashes. | 67 // Ganesh backed 2D-Canvas is not yet working and causes crashes. |
66 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); | 68 cl->AppendSwitch(switches::kDisableAccelerated2dCanvas); |
67 | 69 |
68 return false; | 70 return false; |
69 } | 71 } |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
126 AwBrowserContext* browser_context) { | 128 AwBrowserContext* browser_context) { |
127 return AwGeolocationPermissionContext::Create(browser_context); | 129 return AwGeolocationPermissionContext::Create(browser_context); |
128 } | 130 } |
129 | 131 |
130 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( | 132 content::WebContentsViewDelegate* AwMainDelegate::CreateViewDelegate( |
131 content::WebContents* web_contents) { | 133 content::WebContents* web_contents) { |
132 return AwWebContentsViewDelegate::Create(web_contents); | 134 return AwWebContentsViewDelegate::Create(web_contents); |
133 } | 135 } |
134 | 136 |
135 } // namespace android_webview | 137 } // namespace android_webview |
OLD | NEW |