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

Side by Side Diff: ui/base/clipboard/scoped_clipboard_writer.h

Issue 450093002: Cleanup: Remove obsolete references to webkit_glue namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/child/threaded_data_provider.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file declares the ScopedClipboardWriter class, a wrapper around 5 // This file declares the ScopedClipboardWriter class, a wrapper around
6 // the Clipboard class which simplifies writing data to the system clipboard. 6 // the Clipboard class which simplifies writing data to the system clipboard.
7 // Upon deletion the class atomically writes all data to |clipboard_|, 7 // Upon deletion the class atomically writes all data to |clipboard_|,
8 // avoiding any potential race condition with other processes that are also 8 // avoiding any potential race condition with other processes that are also
9 // writing to the system clipboard. 9 // writing to the system clipboard.
10 10
11 #ifndef UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ 11 #ifndef UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
12 #define UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ 12 #define UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "ui/base/clipboard/clipboard.h" 17 #include "ui/base/clipboard/clipboard.h"
18 #include "ui/base/ui_base_export.h" 18 #include "ui/base/ui_base_export.h"
19 19
20 class Pickle; 20 class Pickle;
21 21
22 namespace ui { 22 namespace ui {
23 23
24 // This class is a wrapper for |Clipboard| that handles packing data 24 // This class is a wrapper for |Clipboard| that handles packing data
25 // into a Clipboard::ObjectMap. 25 // into a Clipboard::ObjectMap.
26 // NB: You should probably NOT be using this class if you include
27 // webkit_glue.h. Use ScopedClipboardWriterGlue instead.
28 class UI_BASE_EXPORT ScopedClipboardWriter { 26 class UI_BASE_EXPORT ScopedClipboardWriter {
29 public: 27 public:
30 // Create an instance that is a simple wrapper around clipboard. 28 // Create an instance that is a simple wrapper around clipboard.
31 ScopedClipboardWriter(Clipboard* clipboard, ClipboardType type); 29 ScopedClipboardWriter(Clipboard* clipboard, ClipboardType type);
32 30
33 ~ScopedClipboardWriter(); 31 ~ScopedClipboardWriter();
34 32
35 // Converts |text| to UTF-8 and adds it to the clipboard. 33 // Converts |text| to UTF-8 and adds it to the clipboard.
36 void WriteText(const base::string16& text); 34 void WriteText(const base::string16& text);
37 35
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 std::string url_text_; 79 std::string url_text_;
82 80
83 private: 81 private:
84 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriter); 82 DISALLOW_COPY_AND_ASSIGN(ScopedClipboardWriter);
85 }; 83 };
86 84
87 } // namespace ui 85 } // namespace ui
88 86
89 #endif // UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ 87 #endif // UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_
90 88
OLDNEW
« no previous file with comments | « content/child/threaded_data_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698