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/webplugin_delegate_proxy.h" | 5 #include "content/renderer/webplugin_delegate_proxy.h" |
6 | 6 |
7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #elif defined(USE_X11) | 9 #elif defined(USE_X11) |
10 #include <cairo/cairo.h> | 10 #include <cairo/cairo.h> |
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 params.type = static_cast<ui::TextInputType>(input_type); | 938 params.type = static_cast<ui::TextInputType>(input_type); |
939 params.can_compose_inline = true; | 939 params.can_compose_inline = true; |
940 render_view_->Send(new ViewHostMsg_TextInputStateChanged( | 940 render_view_->Send(new ViewHostMsg_TextInputStateChanged( |
941 render_view_->routing_id(), | 941 render_view_->routing_id(), |
942 params)); | 942 params)); |
943 | 943 |
944 ViewHostMsg_SelectionBounds_Params bounds_params; | 944 ViewHostMsg_SelectionBounds_Params bounds_params; |
945 bounds_params.anchor_rect = bounds_params.focus_rect = caret_rect; | 945 bounds_params.anchor_rect = bounds_params.focus_rect = caret_rect; |
946 bounds_params.anchor_dir = bounds_params.focus_dir = | 946 bounds_params.anchor_dir = bounds_params.focus_dir = |
947 WebKit::WebTextDirectionLeftToRight; | 947 WebKit::WebTextDirectionLeftToRight; |
| 948 bounds_params.is_anchor_first = true; |
948 render_view_->Send(new ViewHostMsg_SelectionBoundsChanged( | 949 render_view_->Send(new ViewHostMsg_SelectionBoundsChanged( |
949 render_view_->routing_id(), | 950 render_view_->routing_id(), |
950 bounds_params)); | 951 bounds_params)); |
951 } | 952 } |
952 #endif | 953 #endif |
953 | 954 |
954 void WebPluginDelegateProxy::OnCancelResource(int id) { | 955 void WebPluginDelegateProxy::OnCancelResource(int id) { |
955 if (plugin_) | 956 if (plugin_) |
956 plugin_->CancelResource(id); | 957 plugin_->CancelResource(id); |
957 } | 958 } |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 | 1303 |
1303 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, | 1304 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, |
1304 int resource_id) { | 1305 int resource_id) { |
1305 if (!plugin_) | 1306 if (!plugin_) |
1306 return; | 1307 return; |
1307 | 1308 |
1308 plugin_->URLRedirectResponse(allow, resource_id); | 1309 plugin_->URLRedirectResponse(allow, resource_id); |
1309 } | 1310 } |
1310 | 1311 |
1311 } // namespace content | 1312 } // namespace content |
OLD | NEW |