| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 void setMarkedTextMatchesAreHighlighted(bool); | 219 void setMarkedTextMatchesAreHighlighted(bool); |
| 220 | 220 |
| 221 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool selectReplacement, bool smartReplace, bool matchStyle); | 221 void replaceSelectionWithFragment(PassRefPtrWillBeRawPtr<DocumentFragment>,
bool selectReplacement, bool smartReplace, bool matchStyle); |
| 222 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); | 222 void replaceSelectionWithText(const String&, bool selectReplacement, bool sm
artReplace); |
| 223 | 223 |
| 224 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } | 224 EditorParagraphSeparator defaultParagraphSeparator() const { return m_defaul
tParagraphSeparator; } |
| 225 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } | 225 void setDefaultParagraphSeparator(EditorParagraphSeparator separator) { m_de
faultParagraphSeparator = separator; } |
| 226 | 226 |
| 227 class RevealSelectionScope { | 227 class RevealSelectionScope { |
| 228 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); | 228 WTF_MAKE_NONCOPYABLE(RevealSelectionScope); |
| 229 STACK_ALLOCATED(); |
| 229 public: | 230 public: |
| 230 RevealSelectionScope(Editor*); | 231 explicit RevealSelectionScope(Editor*); |
| 231 ~RevealSelectionScope(); | 232 ~RevealSelectionScope(); |
| 232 private: | 233 private: |
| 233 Editor* m_editor; | 234 RawPtrWillBeMember<Editor> m_editor; |
| 234 }; | 235 }; |
| 235 friend class RevealSelectionScope; | 236 friend class RevealSelectionScope; |
| 236 | 237 |
| 237 void trace(Visitor*); | 238 void trace(Visitor*); |
| 238 | 239 |
| 239 private: | 240 private: |
| 240 RawPtrWillBeMember<LocalFrame> m_frame; | 241 RawPtrWillBeMember<LocalFrame> m_frame; |
| 241 RefPtrWillBeMember<CompositeEditCommand> m_lastEditCommand; | 242 RefPtrWillBeMember<CompositeEditCommand> m_lastEditCommand; |
| 242 int m_preventRevealSelection; | 243 int m_preventRevealSelection; |
| 243 bool m_shouldStartNewKillRingSequence; | 244 bool m_shouldStartNewKillRingSequence; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 301 |
| 301 inline bool Editor::markedTextMatchesAreHighlighted() const | 302 inline bool Editor::markedTextMatchesAreHighlighted() const |
| 302 { | 303 { |
| 303 return m_areMarkedTextMatchesHighlighted; | 304 return m_areMarkedTextMatchesHighlighted; |
| 304 } | 305 } |
| 305 | 306 |
| 306 | 307 |
| 307 } // namespace blink | 308 } // namespace blink |
| 308 | 309 |
| 309 #endif // Editor_h | 310 #endif // Editor_h |
| OLD | NEW |