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 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |