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

Side by Side Diff: third_party/WebKit/Source/core/clipboard/Pasteboard.h

Issue 2393013002: reflow comments in core/{clipboard,streams,testing,timing} (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 enum SmartReplaceOption { CanSmartReplace, CannotSmartReplace }; 47 enum SmartReplaceOption { CanSmartReplace, CannotSmartReplace };
48 48
49 static Pasteboard* generalPasteboard(); 49 static Pasteboard* generalPasteboard();
50 void writePlainText(const String&, SmartReplaceOption); 50 void writePlainText(const String&, SmartReplaceOption);
51 void writeImage(Image*, const KURL&, const String& title); 51 void writeImage(Image*, const KURL&, const String& title);
52 void writeDataObject(DataObject*); 52 void writeDataObject(DataObject*);
53 bool canSmartReplace(); 53 bool canSmartReplace();
54 bool isHTMLAvailable(); 54 bool isHTMLAvailable();
55 String plainText(); 55 String plainText();
56 56
57 // If no data is read, an empty string will be returned and all out parameters will be cleared. 57 // If no data is read, an empty string will be returned and all out parameters
58 // If applicable, the page URL will be assigned to the KURL parameter. 58 // will be cleared. If applicable, the page URL will be assigned to the KURL
59 // fragmentStart and fragmentEnd are indexes into the returned markup that ind icate 59 // parameter. fragmentStart and fragmentEnd are indexes into the returned
60 // the start and end of the returned markup. If there is no additional context , 60 // markup that indicate the start and end of the returned markup. If there is
61 // fragmentStart will be zero and fragmentEnd will be the same as the length o f the markup. 61 // no additional context, fragmentStart will be zero and fragmentEnd will be
62 // the same as the length of the markup.
62 String readHTML(KURL&, unsigned& fragmentStart, unsigned& fragmentEnd); 63 String readHTML(KURL&, unsigned& fragmentStart, unsigned& fragmentEnd);
63 64
64 void writeHTML(const String& markup, 65 void writeHTML(const String& markup,
65 const KURL& documentURL, 66 const KURL& documentURL,
66 const String& plainText, 67 const String& plainText,
67 bool canSmartCopyOrDelete); 68 bool canSmartCopyOrDelete);
68 69
69 bool isSelectionMode() const; 70 bool isSelectionMode() const;
70 void setSelectionMode(bool); 71 void setSelectionMode(bool);
71 72
72 WebClipboard::Buffer buffer() const { return m_buffer; } 73 WebClipboard::Buffer buffer() const { return m_buffer; }
73 74
74 private: 75 private:
75 Pasteboard(); 76 Pasteboard();
76 77
77 WebClipboard::Buffer m_buffer; 78 WebClipboard::Buffer m_buffer;
78 }; 79 };
79 80
80 } // namespace blink 81 } // namespace blink
81 82
82 #endif // Pasteboard_h 83 #endif // Pasteboard_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698