summaryrefslogtreecommitdiffstats
path: root/chrome/common/clipboard_service.cc
blob: a666c0c322d926c54db74b938d34544dea71491d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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.

// Many of these functions are based on those found in
// webkit/port/platform/PasteboardWin.cpp

#include "chrome/common/clipboard_service.h"

#include "SkBitmap.h"

ClipboardService::ClipboardService() {
}

void ClipboardService::WriteBitmap(const SkBitmap& bitmap) {
  SkAutoLockPixels bitmap_lock(bitmap);
  Clipboard::WriteBitmap(bitmap.getPixels(),
                         gfx::Size(bitmap.width(), bitmap.height()));
}