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 "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 2344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2355 return NULL; | 2355 return NULL; |
2356 } else { | 2356 } else { |
2357 return new WebSharedWorkerProxy(RenderThreadImpl::current(), | 2357 return new WebSharedWorkerProxy(RenderThreadImpl::current(), |
2358 document_id, | 2358 document_id, |
2359 exists, | 2359 exists, |
2360 route_id, | 2360 route_id, |
2361 routing_id_); | 2361 routing_id_); |
2362 } | 2362 } |
2363 } | 2363 } |
2364 | 2364 |
2365 // TODO(wjia): remove the version without url when WebKit change is done. | |
scherkus (not reviewing)
2012/08/15 22:53:57
can you annotate which webkit bug?
http://webk.it
wjia(left Chromium)
2012/08/15 23:14:35
Done.
| |
2366 WebMediaPlayer* RenderViewImpl::createMediaPlayer( | |
2367 WebFrame* frame, const WebKit::WebURL& url, WebMediaPlayerClient* client) { | |
2368 return createMediaPlayer(frame, client); | |
2369 } | |
2370 | |
2365 WebMediaPlayer* RenderViewImpl::createMediaPlayer( | 2371 WebMediaPlayer* RenderViewImpl::createMediaPlayer( |
2366 WebFrame* frame, WebMediaPlayerClient* client) { | 2372 WebFrame* frame, WebMediaPlayerClient* client) { |
2367 FOR_EACH_OBSERVER( | 2373 FOR_EACH_OBSERVER( |
2368 RenderViewObserver, observers_, WillCreateMediaPlayer(frame, client)); | 2374 RenderViewObserver, observers_, WillCreateMediaPlayer(frame, client)); |
2369 | 2375 |
2370 #if defined(OS_ANDROID) | 2376 #if defined(OS_ANDROID) |
2371 // TODO(qinmin): upstream the implementation of getting WebGraphicsContext3D | 2377 // TODO(qinmin): upstream the implementation of getting WebGraphicsContext3D |
2372 // and GpuChannelHost here to replace the NULL params. | 2378 // and GpuChannelHost here to replace the NULL params. |
2373 return new webkit_media::WebMediaPlayerAndroid( | 2379 return new webkit_media::WebMediaPlayerAndroid( |
2374 frame, client, cookieJar(frame), media_player_manager_.get(), | 2380 frame, client, cookieJar(frame), media_player_manager_.get(), |
(...skipping 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5795 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5801 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5796 return !!RenderThreadImpl::current()->compositor_thread(); | 5802 return !!RenderThreadImpl::current()->compositor_thread(); |
5797 } | 5803 } |
5798 | 5804 |
5799 void RenderViewImpl::OnJavaBridgeInit() { | 5805 void RenderViewImpl::OnJavaBridgeInit() { |
5800 DCHECK(!java_bridge_dispatcher_); | 5806 DCHECK(!java_bridge_dispatcher_); |
5801 #if defined(ENABLE_JAVA_BRIDGE) | 5807 #if defined(ENABLE_JAVA_BRIDGE) |
5802 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5808 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5803 #endif | 5809 #endif |
5804 } | 5810 } |
OLD | NEW |