| Index: chrome/renderer/render_widget.cc
|
| ===================================================================
|
| --- chrome/renderer/render_widget.cc (revision 11937)
|
| +++ chrome/renderer/render_widget.cc (working copy)
|
| @@ -119,6 +119,7 @@
|
| IPC_MESSAGE_HANDLER(ViewMsg_ImeSetInputMode, OnImeSetInputMode)
|
| IPC_MESSAGE_HANDLER(ViewMsg_ImeSetComposition, OnImeSetComposition)
|
| IPC_MESSAGE_HANDLER(ViewMsg_Repaint, OnMsgRepaint)
|
| + IPC_MESSAGE_HANDLER(ViewMsg_SetTextDirection, OnSetTextDirection)
|
| IPC_MESSAGE_UNHANDLED_ERROR()
|
| IPC_END_MESSAGE_MAP()
|
|
|
| @@ -635,6 +636,13 @@
|
| DidInvalidateRect(webwidget_, repaint_rect);
|
| }
|
|
|
| +void RenderWidget::OnSetTextDirection(WebTextDirection direction) {
|
| + if (!webwidget_)
|
| + return;
|
| +
|
| + webwidget_->SetTextDirection(direction);
|
| +}
|
| +
|
| bool RenderWidget::next_paint_is_resize_ack() const {
|
| return ViewHostMsg_PaintRect_Flags::is_resize_ack(next_paint_flags_);
|
| }
|
|
|