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

Unified Diff: ui/base/clipboard/clipboard.h

Issue 17582013: ui::Clipboard now uses base::win::MessageWindow to create a message-only window on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/clipboard/clipboard.h
diff --git a/ui/base/clipboard/clipboard.h b/ui/base/clipboard/clipboard.h
index fba12d29dbbf7a86dca8ba7adbfc00597fdb9169..9e3156e1bab33cd5daa754bbeb5fdc0b419d4b62 100644
--- a/ui/base/clipboard/clipboard.h
+++ b/ui/base/clipboard/clipboard.h
@@ -11,6 +11,7 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "base/process.h"
#include "base/strings/string16.h"
@@ -37,7 +38,11 @@
namespace base {
class FilePath;
-}
+
+namespace win {
+class MessageWindow;
+} // namespace win
+} // namespace base
namespace gfx {
class Size;
@@ -365,10 +370,8 @@ class UI_EXPORT Clipboard : NON_EXPORTED_BASE(public base::ThreadChecker) {
HWND GetClipboardWindow() const;
// Mark this as mutable so const methods can still do lazy initialization.
- mutable HWND clipboard_owner_;
+ mutable scoped_ptr<base::win::MessageWindow> clipboard_owner_;
- // True if we can create a window.
- bool create_window_;
#elif defined(TOOLKIT_GTK)
// The public API is via WriteObjects() which dispatches to multiple
// Write*() calls, but on GTK we must write all the clipboard types
« no previous file with comments | « no previous file | ui/base/clipboard/clipboard_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698