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

Side by Side Diff: third_party/WebKit/Source/core/editing/Editor.h

Issue 1965543002: [InputEvent] Support |sequence<Range> getRanges()| in 'beforeinput' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dtapuska's review Created 4 years, 7 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 // Returns 0 if this Command is not supported. 140 // Returns 0 if this Command is not supported.
141 int idForHistogram() const; 141 int idForHistogram() const;
142 private: 142 private:
143 LocalFrame& frame() const 143 LocalFrame& frame() const
144 { 144 {
145 DCHECK(m_frame); 145 DCHECK(m_frame);
146 return *m_frame; 146 return *m_frame;
147 } 147 }
148 148
149 HeapRanges* getRanges() const;
dtapuska 2016/05/13 13:27:17 Comment?
chongz 2016/05/19 04:41:48 Done.
150
149 const EditorInternalCommand* m_command; 151 const EditorInternalCommand* m_command;
150 EditorCommandSource m_source; 152 EditorCommandSource m_source;
151 Member<LocalFrame> m_frame; 153 Member<LocalFrame> m_frame;
152 }; 154 };
153 Command createCommand(const String& commandName); // Command source is Comma ndFromMenuOrKeyBinding. 155 Command createCommand(const String& commandName); // Command source is Comma ndFromMenuOrKeyBinding.
154 Command createCommand(const String& commandName, EditorCommandSource); 156 Command createCommand(const String& commandName, EditorCommandSource);
155 157
156 // |Editor::executeCommand| is implementation of |WebFrame::executeCommand| 158 // |Editor::executeCommand| is implementation of |WebFrame::executeCommand|
157 // rather than |Document::execCommand|. 159 // rather than |Document::execCommand|.
158 bool executeCommand(const String&); 160 bool executeCommand(const String&);
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 311
310 inline bool Editor::markedTextMatchesAreHighlighted() const 312 inline bool Editor::markedTextMatchesAreHighlighted() const
311 { 313 {
312 return m_areMarkedTextMatchesHighlighted; 314 return m_areMarkedTextMatchesHighlighted;
313 } 315 }
314 316
315 317
316 } // namespace blink 318 } // namespace blink
317 319
318 #endif // Editor_h 320 #endif // Editor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698