diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-05 01:34:30 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-05 01:34:30 +0000 |
commit | 3ee3ffd1d79a0c1544f3bfd70c7de7606df9482f (patch) | |
tree | 0943a0925f5974478463e5d00886be29109858e6 /chrome/common/clipboard_service.h | |
parent | 38733063b7e1cf0b6e67c0b590773ff4f1aaa18d (diff) | |
download | chromium_src-3ee3ffd1d79a0c1544f3bfd70c7de7606df9482f.zip chromium_src-3ee3ffd1d79a0c1544f3bfd70c7de7606df9482f.tar.gz chromium_src-3ee3ffd1d79a0c1544f3bfd70c7de7606df9482f.tar.bz2 |
Rewrote the clipboard API to be more concurrent. Added a helper class to make it more foolproof. Updated all clients and unittests. Mac port by jeremy@chromium.org
Review URL: http://codereview.chromium.org/9154
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/clipboard_service.h')
-rw-r--r-- | chrome/common/clipboard_service.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/common/clipboard_service.h b/chrome/common/clipboard_service.h index 7da0e0a..ed34afd 100644 --- a/chrome/common/clipboard_service.h +++ b/chrome/common/clipboard_service.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef CHROME_COMMON_CLIPBOARD_SERIVCE_H__ -#define CHROME_COMMON_CLIPBOARD_SERIVCE_H__ +#ifndef CHROME_COMMON_CLIPBOARD_SERVICE_H__ +#define CHROME_COMMON_CLIPBOARD_SERVICE_H__ #include <string> #include <vector> @@ -14,17 +14,11 @@ class SkBitmap; class ClipboardService : public Clipboard { public: - ClipboardService(); - - // Adds a bitmap to the clipboard - // This is the slowest way to copy a bitmap to the clipboard as we must fist - // memcpy the bits into GDI and the blit the bitmap to the clipboard. - void WriteBitmap(const SkBitmap& bitmap); + ClipboardService() {} private: DISALLOW_EVIL_CONSTRUCTORS(ClipboardService); }; -#endif // CHROME_COMMON_CLIPBOARD_SERIVCE_H__ - +#endif // CHROME_COMMON_CLIPBOARD_SERVICE_H__ |