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

Side by Side Diff: Source/WebCore/editing/Editor.h

Issue 7031026: Revert 84311 - REGRESSION(r55762): Highlight color can't be copied in gmail. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 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
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 bool isTextInsertion() const; 191 bool isTextInsertion() const;
192 192
193 private: 193 private:
194 const EditorInternalCommand* m_command; 194 const EditorInternalCommand* m_command;
195 EditorCommandSource m_source; 195 EditorCommandSource m_source;
196 RefPtr<Frame> m_frame; 196 RefPtr<Frame> m_frame;
197 }; 197 };
198 Command command(const String& commandName); // Command source is CommandFrom MenuOrKeyBinding. 198 Command command(const String& commandName); // Command source is CommandFrom MenuOrKeyBinding.
199 Command command(const String& commandName, EditorCommandSource); 199 Command command(const String& commandName, EditorCommandSource);
200 static bool commandIsSupportedFromMenuOrKeyBinding(const String& commandName ); // Works without a frame. 200 static bool commandIsSupportedFromMenuOrKeyBinding(const String& commandName ); // Works without a frame.
201 static bool hasTransparentBackgroundColor(CSSStyleDeclaration*);
202 201
203 bool insertText(const String&, Event* triggeringEvent); 202 bool insertText(const String&, Event* triggeringEvent);
204 bool insertTextForConfirmedComposition(const String& text); 203 bool insertTextForConfirmedComposition(const String& text);
205 bool insertTextWithoutSendingTextEvent(const String&, bool selectInsertedTex t, TextEvent* triggeringEvent); 204 bool insertTextWithoutSendingTextEvent(const String&, bool selectInsertedTex t, TextEvent* triggeringEvent);
206 bool insertLineBreak(); 205 bool insertLineBreak();
207 bool insertParagraphSeparator(); 206 bool insertParagraphSeparator();
208 207
209 bool isContinuousSpellCheckingEnabled(); 208 bool isContinuousSpellCheckingEnabled();
210 void toggleContinuousSpellChecking(); 209 void toggleContinuousSpellChecking();
211 bool isGrammarCheckingEnabled(); 210 bool isGrammarCheckingEnabled();
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 452
454 inline bool Editor::markedTextMatchesAreHighlighted() const 453 inline bool Editor::markedTextMatchesAreHighlighted() const
455 { 454 {
456 return m_areMarkedTextMatchesHighlighted; 455 return m_areMarkedTextMatchesHighlighted;
457 } 456 }
458 457
459 458
460 } // namespace WebCore 459 } // namespace WebCore
461 460
462 #endif // Editor_h 461 #endif // Editor_h
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698