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

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

Issue 2894473003: Fix behavior of clipboard commands when there is unfocused selection (Closed)
Patch Set: Fix UnsafeSVGAttributeSanitizationTest Created 3 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 bool CanDHTMLCut(); 91 bool CanDHTMLCut();
92 bool CanDHTMLCopy(); 92 bool CanDHTMLCopy();
93 93
94 bool CanCut() const; 94 bool CanCut() const;
95 bool CanCopy() const; 95 bool CanCopy() const;
96 bool CanPaste() const; 96 bool CanPaste() const;
97 bool CanDelete() const; 97 bool CanDelete() const;
98 bool CanSmartCopyOrDelete() const; 98 bool CanSmartCopyOrDelete() const;
99 99
100 void Cut(EditorCommandSource); 100 void Cut(EditorCommandSource);
101 void Copy(); 101 void Copy(EditorCommandSource);
102 void Paste(EditorCommandSource); 102 void Paste(EditorCommandSource);
103 void PasteAsPlainText(EditorCommandSource); 103 void PasteAsPlainText(EditorCommandSource);
104 void PerformDelete(); 104 void PerformDelete();
105 105
106 static void CountEvent(ExecutionContext*, const Event*); 106 static void CountEvent(ExecutionContext*, const Event*);
107 void CopyImage(const HitTestResult&); 107 void CopyImage(const HitTestResult&);
108 108
109 void Transpose(); 109 void Transpose();
110 110
111 void RespondToChangedContents(const Position&); 111 void RespondToChangedContents(const Position&);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 typing_style_.Clear(); 389 typing_style_.Clear();
390 } 390 }
391 391
392 inline void Editor::SetTypingStyle(EditingStyle* style) { 392 inline void Editor::SetTypingStyle(EditingStyle* style) {
393 typing_style_ = style; 393 typing_style_ = style;
394 } 394 }
395 395
396 } // namespace blink 396 } // namespace blink
397 397
398 #endif // Editor_h 398 #endif // Editor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698