| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef WEBKIT_GLUE_WEBWIDGET_H__ | 5 #ifndef WEBKIT_GLUE_WEBWIDGET_H__ |
| 6 #define WEBKIT_GLUE_WEBWIDGET_H__ | 6 #define WEBKIT_GLUE_WEBWIDGET_H__ |
| 7 | 7 |
| 8 #include "skia/ext/platform_canvas.h" | 8 #include "skia/ext/platform_canvas.h" |
| 9 #include "webkit/glue/webtextdirection.h" |
| 9 | 10 |
| 10 namespace gfx { | 11 namespace gfx { |
| 11 class Rect; | 12 class Rect; |
| 12 class Size; | 13 class Size; |
| 13 } | 14 } |
| 14 | 15 |
| 15 class WebInputEvent; | 16 class WebInputEvent; |
| 16 class WebWidgetDelegate; | 17 class WebWidgetDelegate; |
| 17 | 18 |
| 18 class WebWidget { | 19 class WebWidget { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 58 |
| 58 // Called to inform the webwidget of a composition event from IMM | 59 // Called to inform the webwidget of a composition event from IMM |
| 59 // (Input Method Manager). | 60 // (Input Method Manager). |
| 60 virtual bool ImeSetComposition(int string_type, int cursor_position, | 61 virtual bool ImeSetComposition(int string_type, int cursor_position, |
| 61 int target_start, int target_end, | 62 int target_start, int target_end, |
| 62 const std::wstring& ime_string) = 0; | 63 const std::wstring& ime_string) = 0; |
| 63 | 64 |
| 64 // Retrieve the status of this widget required by IME APIs. | 65 // Retrieve the status of this widget required by IME APIs. |
| 65 virtual bool ImeUpdateStatus(bool* enable_ime, gfx::Rect* caret_rect) = 0; | 66 virtual bool ImeUpdateStatus(bool* enable_ime, gfx::Rect* caret_rect) = 0; |
| 66 | 67 |
| 68 // Changes the text direction of the selected input node. |
| 69 virtual void SetTextDirection(WebTextDirection direction) = 0; |
| 70 |
| 67 protected: | 71 protected: |
| 68 virtual ~WebWidget() {} | 72 virtual ~WebWidget() {} |
| 69 | 73 |
| 70 private: | 74 private: |
| 71 DISALLOW_EVIL_CONSTRUCTORS(WebWidget); | 75 DISALLOW_EVIL_CONSTRUCTORS(WebWidget); |
| 72 }; | 76 }; |
| 73 | 77 |
| 74 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_H__ | 78 #endif // #ifndef WEBKIT_GLUE_WEBWIDGET_H__ |
| OLD | NEW |