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

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

Issue 1306003002: Make classes and structures in core/editing fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 23 matching lines...) Expand all
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class Editor; 38 class Editor;
39 class LocalFrame; 39 class LocalFrame;
40 class Range; 40 class Range;
41 class Text; 41 class Text;
42 42
43 class CORE_EXPORT InputMethodController final : public NoBaseWillBeGarbageCollec tedFinalized<InputMethodController> { 43 class CORE_EXPORT InputMethodController final : public NoBaseWillBeGarbageCollec tedFinalized<InputMethodController> {
44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(InputMethodController);
44 WTF_MAKE_NONCOPYABLE(InputMethodController); 45 WTF_MAKE_NONCOPYABLE(InputMethodController);
45 public: 46 public:
46 enum ConfirmCompositionBehavior { 47 enum ConfirmCompositionBehavior {
47 DoNotKeepSelection, 48 DoNotKeepSelection,
48 KeepSelection, 49 KeepSelection,
49 }; 50 };
50 51
51 static PassOwnPtrWillBeRawPtr<InputMethodController> create(LocalFrame&); 52 static PassOwnPtrWillBeRawPtr<InputMethodController> create(LocalFrame&);
52 ~InputMethodController(); 53 ~InputMethodController();
53 DECLARE_TRACE(); 54 DECLARE_TRACE();
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void selectComposition() const; 121 void selectComposition() const;
121 enum FinishCompositionMode { ConfirmComposition, CancelComposition }; 122 enum FinishCompositionMode { ConfirmComposition, CancelComposition };
122 // Returns true if composition exists. 123 // Returns true if composition exists.
123 bool finishComposition(const String&, FinishCompositionMode); 124 bool finishComposition(const String&, FinishCompositionMode);
124 bool setSelectionOffsets(const PlainTextRange&); 125 bool setSelectionOffsets(const PlainTextRange&);
125 }; 126 };
126 127
127 } // namespace blink 128 } // namespace blink
128 129
129 #endif // InputMethodController_h 130 #endif // InputMethodController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698