| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #ifndef InputMethodController_h | 26 #ifndef InputMethodController_h |
| 27 #define InputMethodController_h | 27 #define InputMethodController_h |
| 28 | 28 |
| 29 #include "core/editing/CompositionUnderline.h" | 29 #include "core/editing/CompositionUnderline.h" |
| 30 #include "core/editing/PlainTextRange.h" | 30 #include "core/editing/PlainTextRange.h" |
| 31 #include "wtf/Vector.h" | 31 #include "wtf/Vector.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class Editor; | 35 class Editor; |
| 36 class EditorClient; | |
| 37 class LocalFrame; | 36 class LocalFrame; |
| 38 class Range; | 37 class Range; |
| 39 class Text; | 38 class Text; |
| 40 | 39 |
| 41 class InputMethodController { | 40 class InputMethodController { |
| 42 WTF_MAKE_NONCOPYABLE(InputMethodController); | 41 WTF_MAKE_NONCOPYABLE(InputMethodController); |
| 43 public: | 42 public: |
| 44 enum ConfirmCompositionBehavior { | 43 enum ConfirmCompositionBehavior { |
| 45 DoNotKeepSelection, | 44 DoNotKeepSelection, |
| 46 KeepSelection, | 45 KeepSelection, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void selectComposition() const; | 108 void selectComposition() const; |
| 110 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; | 109 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; |
| 111 // Returns true if composition exists. | 110 // Returns true if composition exists. |
| 112 bool finishComposition(const String&, FinishCompositionMode); | 111 bool finishComposition(const String&, FinishCompositionMode); |
| 113 bool setSelectionOffsets(const PlainTextRange&); | 112 bool setSelectionOffsets(const PlainTextRange&); |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 } // namespace blink | 115 } // namespace blink |
| 117 | 116 |
| 118 #endif // InputMethodController_h | 117 #endif // InputMethodController_h |
| OLD | NEW |