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

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

Issue 10855036: Adding selection text direction to SelectionBoundsChanged. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 4 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 | Annotate | Revision Log
« 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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1118 const gfx::Rect& caret_rect) { 1118 const gfx::Rect& caret_rect) {
1119 if (!render_view_) 1119 if (!render_view_)
1120 return; 1120 return;
1121 1121
1122 render_view_->Send(new ViewHostMsg_TextInputStateChanged( 1122 render_view_->Send(new ViewHostMsg_TextInputStateChanged(
1123 render_view_->routing_id(), 1123 render_view_->routing_id(),
1124 static_cast<ui::TextInputType>(input_type), 1124 static_cast<ui::TextInputType>(input_type),
1125 true)); 1125 true));
1126 1126
1127 render_view_->Send(new ViewHostMsg_SelectionBoundsChanged( 1127 render_view_->Send(new ViewHostMsg_SelectionBoundsChanged(
1128 render_view_->routing_id(), caret_rect, caret_rect)); 1128 render_view_->routing_id(),
1129 caret_rect, WebKit::WebTextDirectionLeftToRight,
1130 caret_rect, WebKit::WebTextDirectionLeftToRight));
1129 } 1131 }
1130 #endif 1132 #endif
1131 1133
1132 void WebPluginDelegateProxy::OnCancelResource(int id) { 1134 void WebPluginDelegateProxy::OnCancelResource(int id) {
1133 if (plugin_) 1135 if (plugin_)
1134 plugin_->CancelResource(id); 1136 plugin_->CancelResource(id);
1135 } 1137 }
1136 1138
1137 void WebPluginDelegateProxy::OnInvalidateRect(const gfx::Rect& rect, 1139 void WebPluginDelegateProxy::OnInvalidateRect(const gfx::Rect& rect,
1138 bool allow_buffer_flipping) { 1140 bool allow_buffer_flipping) {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 } 1482 }
1481 #endif 1483 #endif
1482 1484
1483 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow, 1485 void WebPluginDelegateProxy::OnURLRedirectResponse(bool allow,
1484 int resource_id) { 1486 int resource_id) {
1485 if (!plugin_) 1487 if (!plugin_)
1486 return; 1488 return;
1487 1489
1488 plugin_->URLRedirectResponse(allow, resource_id); 1490 plugin_->URLRedirectResponse(allow, resource_id);
1489 } 1491 }
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