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

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

Issue 224113002: Oilpan: move Range object to the oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use STACK_ALLOCATED() + incorporate ager's overview of macros in this area. Created 6 years, 8 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // Inserts the given text string in the place of the existing composition 59 // Inserts the given text string in the place of the existing composition
60 // and returns true. 60 // and returns true.
61 bool confirmComposition(const String& text); 61 bool confirmComposition(const String& text);
62 // Inserts the text that is being composed or specified non-empty text and 62 // Inserts the text that is being composed or specified non-empty text and
63 // returns true. 63 // returns true.
64 bool confirmCompositionOrInsertText(const String& text, ConfirmCompositionBe havior); 64 bool confirmCompositionOrInsertText(const String& text, ConfirmCompositionBe havior);
65 void confirmCompositionAndResetState(); 65 void confirmCompositionAndResetState();
66 // Deletes the existing composition text. 66 // Deletes the existing composition text.
67 void cancelComposition(); 67 void cancelComposition();
68 void cancelCompositionIfSelectionIsInvalid(); 68 void cancelCompositionIfSelectionIsInvalid();
69 PassRefPtr<Range> compositionRange() const; 69 PassRefPtrWillBeRawPtr<Range> compositionRange() const;
70 70
71 // getting international text input composition state (for use by InlineText Box) 71 // getting international text input composition state (for use by InlineText Box)
72 Text* compositionNode() const { return m_compositionNode.get(); } 72 Text* compositionNode() const { return m_compositionNode.get(); }
73 unsigned compositionStart() const { return m_compositionStart; } 73 unsigned compositionStart() const { return m_compositionStart; }
74 unsigned compositionEnd() const { return m_compositionEnd; } 74 unsigned compositionEnd() const { return m_compositionEnd; }
75 bool compositionUsesCustomUnderlines() const { return !m_customCompositionUn derlines.isEmpty(); } 75 bool compositionUsesCustomUnderlines() const { return !m_customCompositionUn derlines.isEmpty(); }
76 const Vector<CompositionUnderline>& customCompositionUnderlines() const { re turn m_customCompositionUnderlines; } 76 const Vector<CompositionUnderline>& customCompositionUnderlines() const { re turn m_customCompositionUnderlines; }
77 77
78 void clear(); 78 void clear();
79 79
(...skipping 29 matching lines...) Expand all
109 void selectComposition() const; 109 void selectComposition() const;
110 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; 110 enum FinishCompositionMode { ConfirmComposition, CancelComposition };
111 // Returns true if composition exists. 111 // Returns true if composition exists.
112 bool finishComposition(const String&, FinishCompositionMode); 112 bool finishComposition(const String&, FinishCompositionMode);
113 bool setSelectionOffsets(const PlainTextRange&); 113 bool setSelectionOffsets(const PlainTextRange&);
114 }; 114 };
115 115
116 } // namespace WebCore 116 } // namespace WebCore
117 117
118 #endif // InputMethodController_h 118 #endif // InputMethodController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698