blob: 7da0e0ace826fd160db14ba18dcdd7921b1a9876 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// 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__
#include <string>
#include <vector>
#include "base/clipboard.h"
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);
private:
DISALLOW_EVIL_CONSTRUCTORS(ClipboardService);
};
#endif // CHROME_COMMON_CLIPBOARD_SERIVCE_H__
|