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

Unified Diff: webkit/glue/scoped_clipboard_writer_glue.cc

Issue 17420005: Move the following clipboard files from webkit\glue to webkit\renderer. These files now live in the… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « webkit/glue/scoped_clipboard_writer_glue.h ('k') | webkit/glue/webclipboard_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/scoped_clipboard_writer_glue.cc
===================================================================
--- webkit/glue/scoped_clipboard_writer_glue.cc (revision 207553)
+++ webkit/glue/scoped_clipboard_writer_glue.cc (working copy)
@@ -1,35 +0,0 @@
-// Copyright (c) 2012 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.
-
-#include "webkit/glue/scoped_clipboard_writer_glue.h"
-#include "base/logging.h"
-
-namespace webkit_glue {
-
-ScopedClipboardWriterGlue::ScopedClipboardWriterGlue(
- webkit_glue::ClipboardClient* client)
- : ui::ScopedClipboardWriter(client->GetClipboard(),
- ui::Clipboard::BUFFER_STANDARD),
- context_(client->CreateWriteContext()) {
- // We should never have an instance where both are set.
- DCHECK((clipboard_ && !context_.get()) ||
- (!clipboard_ && context_.get()));
-}
-
-ScopedClipboardWriterGlue::~ScopedClipboardWriterGlue() {
- if (!objects_.empty() && context_) {
- context_->Flush(objects_);
- }
-}
-
-void ScopedClipboardWriterGlue::WriteBitmapFromPixels(const void* pixels,
- const gfx::Size& size) {
- if (context_) {
- context_->WriteBitmapFromPixels(&objects_, pixels, size);
- } else {
- ScopedClipboardWriter::WriteBitmapFromPixels(pixels, size);
- }
-}
-
-} // namespace webkit_glue
« no previous file with comments | « webkit/glue/scoped_clipboard_writer_glue.h ('k') | webkit/glue/webclipboard_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698