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 20 matching lines...) Expand all Loading... |
31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
32 #include "wtf/Vector.h" | 32 #include "wtf/Vector.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class Editor; | 36 class Editor; |
37 class LocalFrame; | 37 class LocalFrame; |
38 class Range; | 38 class Range; |
39 class Text; | 39 class Text; |
40 | 40 |
41 class InputMethodController FINAL : public NoBaseWillBeGarbageCollectedFinalized
<InputMethodController> { | 41 class InputMethodController final : public NoBaseWillBeGarbageCollectedFinalized
<InputMethodController> { |
42 WTF_MAKE_NONCOPYABLE(InputMethodController); | 42 WTF_MAKE_NONCOPYABLE(InputMethodController); |
43 public: | 43 public: |
44 enum ConfirmCompositionBehavior { | 44 enum ConfirmCompositionBehavior { |
45 DoNotKeepSelection, | 45 DoNotKeepSelection, |
46 KeepSelection, | 46 KeepSelection, |
47 }; | 47 }; |
48 | 48 |
49 static PassOwnPtrWillBeRawPtr<InputMethodController> create(LocalFrame&); | 49 static PassOwnPtrWillBeRawPtr<InputMethodController> create(LocalFrame&); |
50 ~InputMethodController(); | 50 ~InputMethodController(); |
51 void trace(Visitor*); | 51 void trace(Visitor*); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void selectComposition() const; | 117 void selectComposition() const; |
118 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; | 118 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; |
119 // Returns true if composition exists. | 119 // Returns true if composition exists. |
120 bool finishComposition(const String&, FinishCompositionMode); | 120 bool finishComposition(const String&, FinishCompositionMode); |
121 bool setSelectionOffsets(const PlainTextRange&); | 121 bool setSelectionOffsets(const PlainTextRange&); |
122 }; | 122 }; |
123 | 123 |
124 } // namespace blink | 124 } // namespace blink |
125 | 125 |
126 #endif // InputMethodController_h | 126 #endif // InputMethodController_h |
OLD | NEW |