| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual ExecutionContext* executionContext() const override; | 70 virtual ExecutionContext* executionContext() const override; |
| 71 | 71 |
| 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowshow); | 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowshow); |
| 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowupdate); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowupdate); |
| 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowhide); | 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(candidatewindowhide); |
| 75 | 75 |
| 76 void dispatchCandidateWindowShowEvent(); | 76 void dispatchCandidateWindowShowEvent(); |
| 77 void dispatchCandidateWindowUpdateEvent(); | 77 void dispatchCandidateWindowUpdateEvent(); |
| 78 void dispatchCandidateWindowHideEvent(); | 78 void dispatchCandidateWindowHideEvent(); |
| 79 | 79 |
| 80 virtual void trace(Visitor*) override; | 80 DECLARE_VIRTUAL_TRACE(); |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 InputMethodContext(HTMLElement*); | 83 InputMethodContext(HTMLElement*); |
| 84 bool hasFocus() const; | 84 bool hasFocus() const; |
| 85 CompositionUnderline selectedSegment() const; | 85 CompositionUnderline selectedSegment() const; |
| 86 InputMethodController& inputMethodController() const; | 86 InputMethodController& inputMethodController() const; |
| 87 | 87 |
| 88 #if !ENABLE(OILPAN) | 88 #if !ENABLE(OILPAN) |
| 89 virtual void refEventTarget() override { ref(); } | 89 virtual void refEventTarget() override { ref(); } |
| 90 virtual void derefEventTarget() override { deref(); } | 90 virtual void derefEventTarget() override { deref(); } |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 RawPtrWillBeMember<HTMLElement> m_element; | 93 RawPtrWillBeMember<HTMLElement> m_element; |
| 94 Vector<unsigned> m_segments; | 94 Vector<unsigned> m_segments; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| 98 | 98 |
| 99 #endif // InputMethodContext_h | 99 #endif // InputMethodContext_h |
| OLD | NEW |