Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Side by Side Diff: content/renderer/webplugin_delegate_proxy.cc

Issue 12228005: Pass is_anchor_first with SelectionBounds_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698