| OLD | NEW |
| 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 Loading... |
| 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 HeapVector<Member<Range>> getRanges() const; |
| 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 Loading... |
| 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 |
| OLD | NEW |