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 5291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5302 Send(new ViewHostMsg_ImeCancelComposition(routing_id())); | 5302 Send(new ViewHostMsg_ImeCancelComposition(routing_id())); |
5303 const ui::Range range(ui::Range::InvalidRange()); | 5303 const ui::Range range(ui::Range::InvalidRange()); |
5304 const std::vector<gfx::Rect> empty_bounds; | 5304 const std::vector<gfx::Rect> empty_bounds; |
5305 UpdateCompositionInfo(range, empty_bounds); | 5305 UpdateCompositionInfo(range, empty_bounds); |
5306 } | 5306 } |
5307 | 5307 |
5308 void RenderViewImpl::PpapiPluginSelectionChanged() { | 5308 void RenderViewImpl::PpapiPluginSelectionChanged() { |
5309 SyncSelectionIfRequired(); | 5309 SyncSelectionIfRequired(); |
5310 } | 5310 } |
5311 | 5311 |
5312 void RenderViewImpl::PpapiPluginCreated(ppapi::host::PpapiHost* host) { | 5312 void RenderViewImpl::PpapiPluginCreated(content::RendererPpapiHost* host) { |
5313 FOR_EACH_OBSERVER(RenderViewObserver, observers_, | 5313 FOR_EACH_OBSERVER(RenderViewObserver, observers_, |
5314 DidCreatePepperPlugin(host)); | 5314 DidCreatePepperPlugin(host)); |
5315 } | 5315 } |
5316 | 5316 |
5317 void RenderViewImpl::OnImeSetComposition( | 5317 void RenderViewImpl::OnImeSetComposition( |
5318 const string16& text, | 5318 const string16& text, |
5319 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 5319 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
5320 int selection_start, | 5320 int selection_start, |
5321 int selection_end) { | 5321 int selection_end) { |
5322 if (pepper_delegate_.IsPluginFocused()) { | 5322 if (pepper_delegate_.IsPluginFocused()) { |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5722 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5722 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5723 return !!RenderThreadImpl::current()->compositor_thread(); | 5723 return !!RenderThreadImpl::current()->compositor_thread(); |
5724 } | 5724 } |
5725 | 5725 |
5726 void RenderViewImpl::OnJavaBridgeInit() { | 5726 void RenderViewImpl::OnJavaBridgeInit() { |
5727 DCHECK(!java_bridge_dispatcher_); | 5727 DCHECK(!java_bridge_dispatcher_); |
5728 #if defined(ENABLE_JAVA_BRIDGE) | 5728 #if defined(ENABLE_JAVA_BRIDGE) |
5729 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5729 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5730 #endif | 5730 #endif |
5731 } | 5731 } |
OLD | NEW |