| 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 4912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4923 UpdateSelectionBounds(); | 4923 UpdateSelectionBounds(); |
| 4924 } | 4924 } |
| 4925 | 4925 |
| 4926 bool RenderViewImpl::GetPpapiPluginCaretBounds(gfx::Rect* rect) { | 4926 bool RenderViewImpl::GetPpapiPluginCaretBounds(gfx::Rect* rect) { |
| 4927 if (!pepper_delegate_.IsPluginFocused()) | 4927 if (!pepper_delegate_.IsPluginFocused()) |
| 4928 return false; | 4928 return false; |
| 4929 *rect = pepper_delegate_.GetCaretBounds(); | 4929 *rect = pepper_delegate_.GetCaretBounds(); |
| 4930 return true; | 4930 return true; |
| 4931 } | 4931 } |
| 4932 | 4932 |
| 4933 void RenderViewImpl::SimulateImeSetComposition( |
| 4934 const string16& text, |
| 4935 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 4936 int selection_start, |
| 4937 int selection_end) { |
| 4938 OnImeSetComposition(text, underlines, selection_start, selection_end); |
| 4939 } |
| 4940 |
| 4941 void RenderViewImpl::SimulateImeConfirmComposition( |
| 4942 const string16& text, |
| 4943 const ui::Range& replacement_range) { |
| 4944 OnImeConfirmComposition(text, replacement_range); |
| 4945 } |
| 4946 |
| 4933 void RenderViewImpl::PpapiPluginCancelComposition() { | 4947 void RenderViewImpl::PpapiPluginCancelComposition() { |
| 4934 Send(new ViewHostMsg_ImeCancelComposition(routing_id())); | 4948 Send(new ViewHostMsg_ImeCancelComposition(routing_id())); |
| 4935 ui::Range range(ui::Range::InvalidRange()); | 4949 ui::Range range(ui::Range::InvalidRange()); |
| 4936 Send(new ViewHostMsg_ImeCompositionRangeChanged(routing_id(), range)); | 4950 Send(new ViewHostMsg_ImeCompositionRangeChanged(routing_id(), range)); |
| 4937 } | 4951 } |
| 4938 | 4952 |
| 4939 void RenderViewImpl::PpapiPluginSelectionChanged() { | 4953 void RenderViewImpl::PpapiPluginSelectionChanged() { |
| 4940 SyncSelectionIfRequired(); | 4954 SyncSelectionIfRequired(); |
| 4941 } | 4955 } |
| 4942 | 4956 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5320 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5334 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5321 return !!RenderThreadImpl::current()->compositor_thread(); | 5335 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5322 } | 5336 } |
| 5323 | 5337 |
| 5324 void RenderViewImpl::OnJavaBridgeInit() { | 5338 void RenderViewImpl::OnJavaBridgeInit() { |
| 5325 DCHECK(!java_bridge_dispatcher_.get()); | 5339 DCHECK(!java_bridge_dispatcher_.get()); |
| 5326 #if defined(ENABLE_JAVA_BRIDGE) | 5340 #if defined(ENABLE_JAVA_BRIDGE) |
| 5327 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); | 5341 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); |
| 5328 #endif | 5342 #endif |
| 5329 } | 5343 } |
| OLD | NEW |