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 28 matching lines...) Expand all Loading... |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
41 #include "wtf/text/WTFString.h" | 41 #include "wtf/text/WTFString.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 class ExecutionContext; | 45 class ExecutionContext; |
46 class InputMethodController; | 46 class InputMethodController; |
47 class Node; | 47 class Node; |
48 | 48 |
49 class InputMethodContext : public ScriptWrappable, public EventTargetWithInlineD
ata { | 49 class InputMethodContext FINAL : public ScriptWrappable, public EventTargetWithI
nlineData { |
50 public: | 50 public: |
51 static PassOwnPtr<InputMethodContext> create(HTMLElement*); | 51 static PassOwnPtr<InputMethodContext> create(HTMLElement*); |
52 ~InputMethodContext(); | 52 virtual ~InputMethodContext(); |
53 | 53 |
54 void ref() { m_element->ref(); } | 54 void ref() { m_element->ref(); } |
55 void deref() { m_element->deref(); } | 55 void deref() { m_element->deref(); } |
56 | 56 |
57 String locale() const; | 57 String locale() const; |
58 HTMLElement* target() const; | 58 HTMLElement* target() const; |
59 unsigned compositionStartOffset(); | 59 unsigned compositionStartOffset(); |
60 unsigned compositionEndOffset(); | 60 unsigned compositionEndOffset(); |
61 void confirmComposition(); | 61 void confirmComposition(); |
62 | 62 |
(...skipping 22 matching lines...) Expand all Loading... |
85 virtual void refEventTarget() OVERRIDE { ref(); } | 85 virtual void refEventTarget() OVERRIDE { ref(); } |
86 virtual void derefEventTarget() OVERRIDE { deref(); } | 86 virtual void derefEventTarget() OVERRIDE { deref(); } |
87 | 87 |
88 HTMLElement* m_element; | 88 HTMLElement* m_element; |
89 Vector<unsigned> m_segments; | 89 Vector<unsigned> m_segments; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace WebCore | 92 } // namespace WebCore |
93 | 93 |
94 #endif // InputMethodContext_h | 94 #endif // InputMethodContext_h |
OLD | NEW |