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 3719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3730 } | 3730 } |
3731 | 3731 |
3732 int RenderViewImpl::GetPageId() const { | 3732 int RenderViewImpl::GetPageId() const { |
3733 return page_id_; | 3733 return page_id_; |
3734 } | 3734 } |
3735 | 3735 |
3736 gfx::Size RenderViewImpl::GetSize() const { | 3736 gfx::Size RenderViewImpl::GetSize() const { |
3737 return size(); | 3737 return size(); |
3738 } | 3738 } |
3739 | 3739 |
3740 gfx::NativeViewId RenderViewImpl::GetHostWindow() const { | |
3741 return host_window(); | |
3742 } | |
3743 | |
3744 WebPreferences& RenderViewImpl::GetWebkitPreferences() { | 3740 WebPreferences& RenderViewImpl::GetWebkitPreferences() { |
3745 return webkit_preferences_; | 3741 return webkit_preferences_; |
3746 } | 3742 } |
3747 | 3743 |
3748 WebKit::WebView* RenderViewImpl::GetWebView() { | 3744 WebKit::WebView* RenderViewImpl::GetWebView() { |
3749 return webview(); | 3745 return webview(); |
3750 } | 3746 } |
3751 | 3747 |
3752 WebKit::WebNode RenderViewImpl::GetFocusedNode() const { | 3748 WebKit::WebNode RenderViewImpl::GetFocusedNode() const { |
3753 if (!webview()) | 3749 if (!webview()) |
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5607 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5603 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5608 return !!RenderThreadImpl::current()->compositor_thread(); | 5604 return !!RenderThreadImpl::current()->compositor_thread(); |
5609 } | 5605 } |
5610 | 5606 |
5611 void RenderViewImpl::OnJavaBridgeInit() { | 5607 void RenderViewImpl::OnJavaBridgeInit() { |
5612 DCHECK(!java_bridge_dispatcher_); | 5608 DCHECK(!java_bridge_dispatcher_); |
5613 #if defined(ENABLE_JAVA_BRIDGE) | 5609 #if defined(ENABLE_JAVA_BRIDGE) |
5614 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5610 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5615 #endif | 5611 #endif |
5616 } | 5612 } |
OLD | NEW |