| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_WEBTEXTDIRECTION_H_ | |
| 6 #define WEBKIT_GLUE_WEBTEXTDIRECTION_H_ | |
| 7 | |
| 8 // Represents text directions (or writing directions) of a DOM node. | |
| 9 // This type is used as the input parameter of WebWidget::SetTextDirection(). | |
| 10 // This function converts these values to WebCore::WritingDirection values and | |
| 11 // call the Editor::setBaseWritingDirection() function. | |
| 12 // TODO(hbono): Add WEB_TEXT_DIRECTION_ORIGINAL that represents "revert the | |
| 13 // previous changes and set back to the original one" and implement it. | |
| 14 // TODO(hbono): Add WEB_TEXT_DIRECTION_TOGGLE that represents "toggle the text | |
| 15 // direction" and implement it. | |
| 16 enum WebTextDirection { | |
| 17 WEB_TEXT_DIRECTION_DEFAULT, // WebCore::NaturalWritingDirection | |
| 18 WEB_TEXT_DIRECTION_LTR, // WebCore::LeftToRightWritingDirection | |
| 19 WEB_TEXT_DIRECTION_RTL, // WebCore::RightToLeftWritingDirection | |
| 20 }; | |
| 21 | |
| 22 #endif // WEBKIT_GLUE_WEBTEXTDIRECTION_H_ | |
| OLD | NEW |