Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: Source/core/editing/InputMethodController.h

Issue 1162853002: Remove IME API from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove interface in WebWidgets.h Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ElementRareData.cpp ('k') | Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void setCompositionFromExistingText(const Vector<CompositionUnderline>&, uns igned compositionStart, unsigned compositionEnd); 57 void setCompositionFromExistingText(const Vector<CompositionUnderline>&, uns igned compositionStart, unsigned compositionEnd);
58 // Inserts the text that is being composed as a regular text and returns tru e 58 // Inserts the text that is being composed as a regular text and returns tru e
59 // if composition exists. 59 // if composition exists.
60 bool confirmComposition(); 60 bool confirmComposition();
61 // Inserts the given text string in the place of the existing composition 61 // Inserts the given text string in the place of the existing composition
62 // and returns true. 62 // and returns true.
63 bool confirmComposition(const String& text); 63 bool confirmComposition(const String& text);
64 // Inserts the text that is being composed or specified non-empty text and 64 // Inserts the text that is being composed or specified non-empty text and
65 // returns true. 65 // returns true.
66 bool confirmCompositionOrInsertText(const String& text, ConfirmCompositionBe havior); 66 bool confirmCompositionOrInsertText(const String& text, ConfirmCompositionBe havior);
67 void confirmCompositionAndResetState();
68 // Deletes the existing composition text. 67 // Deletes the existing composition text.
69 void cancelComposition(); 68 void cancelComposition();
70 void cancelCompositionIfSelectionIsInvalid(); 69 void cancelCompositionIfSelectionIsInvalid();
71 PassRefPtrWillBeRawPtr<Range> compositionRange() const; 70 PassRefPtrWillBeRawPtr<Range> compositionRange() const;
72 71
73 // getting international text input composition state (for use by InlineText Box) 72 // getting international text input composition state (for use by InlineText Box)
74 Text* compositionNode() const { return m_compositionNode.get(); } 73 Text* compositionNode() const { return m_compositionNode.get(); }
75 unsigned compositionStart() const { return m_compositionStart; } 74 unsigned compositionStart() const { return m_compositionStart; }
76 unsigned compositionEnd() const { return m_compositionEnd; } 75 unsigned compositionEnd() const { return m_compositionEnd; }
77 bool compositionUsesCustomUnderlines() const { return !m_customCompositionUn derlines.isEmpty(); } 76 bool compositionUsesCustomUnderlines() const { return !m_customCompositionUn derlines.isEmpty(); }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void selectComposition() const; 118 void selectComposition() const;
120 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; 119 enum FinishCompositionMode { ConfirmComposition, CancelComposition };
121 // Returns true if composition exists. 120 // Returns true if composition exists.
122 bool finishComposition(const String&, FinishCompositionMode); 121 bool finishComposition(const String&, FinishCompositionMode);
123 bool setSelectionOffsets(const PlainTextRange&); 122 bool setSelectionOffsets(const PlainTextRange&);
124 }; 123 };
125 124
126 } // namespace blink 125 } // namespace blink
127 126
128 #endif // InputMethodController_h 127 #endif // InputMethodController_h
OLDNEW
« no previous file with comments | « Source/core/dom/ElementRareData.cpp ('k') | Source/core/editing/InputMethodController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698