| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void confirmComposition(); | 64 void confirmComposition(); |
| 65 | 65 |
| 66 String compositionText() const; | 66 String compositionText() const; |
| 67 int selectionStart() const; | 67 int selectionStart() const; |
| 68 int selectionEnd() const; | 68 int selectionEnd() const; |
| 69 const Vector<unsigned>& segments(); | 69 const Vector<unsigned>& segments(); |
| 70 | 70 |
| 71 virtual const AtomicString& interfaceName() const OVERRIDE; | 71 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 72 virtual ExecutionContext* executionContext() const OVERRIDE; | 72 virtual ExecutionContext* executionContext() const OVERRIDE; |
| 73 | 73 |
| 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowshow); | |
| 75 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowupdate); | |
| 76 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowhide); | |
| 77 | |
| 78 void dispatchCandidateWindowShowEvent(); | 74 void dispatchCandidateWindowShowEvent(); |
| 79 void dispatchCandidateWindowUpdateEvent(); | 75 void dispatchCandidateWindowUpdateEvent(); |
| 80 void dispatchCandidateWindowHideEvent(); | 76 void dispatchCandidateWindowHideEvent(); |
| 81 | 77 |
| 82 virtual void trace(Visitor*) OVERRIDE; | 78 virtual void trace(Visitor*) OVERRIDE; |
| 83 | 79 |
| 84 private: | 80 private: |
| 85 InputMethodContext(HTMLElement*); | 81 InputMethodContext(HTMLElement*); |
| 86 bool hasFocus() const; | 82 bool hasFocus() const; |
| 87 CompositionUnderline selectedSegment() const; | 83 CompositionUnderline selectedSegment() const; |
| 88 InputMethodController& inputMethodController() const; | 84 InputMethodController& inputMethodController() const; |
| 89 | 85 |
| 90 #if !ENABLE(OILPAN) | 86 #if !ENABLE(OILPAN) |
| 91 virtual void refEventTarget() OVERRIDE { ref(); } | 87 virtual void refEventTarget() OVERRIDE { ref(); } |
| 92 virtual void derefEventTarget() OVERRIDE { deref(); } | 88 virtual void derefEventTarget() OVERRIDE { deref(); } |
| 93 #endif | 89 #endif |
| 94 | 90 |
| 95 RawPtrWillBeMember<HTMLElement> m_element; | 91 RawPtrWillBeMember<HTMLElement> m_element; |
| 96 Vector<unsigned> m_segments; | 92 Vector<unsigned> m_segments; |
| 97 }; | 93 }; |
| 98 | 94 |
| 99 } // namespace blink | 95 } // namespace blink |
| 100 | 96 |
| 101 #endif // InputMethodContext_h | 97 #endif // InputMethodContext_h |
| OLD | NEW |