| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/clipboard.h" | 8 #include "base/clipboard.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/scoped_clipboard_writer.h" | 10 #include "base/scoped_clipboard_writer.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 273 |
| 274 { | 274 { |
| 275 ScopedClipboardWriter clipboard_writer(&clipboard); | 275 ScopedClipboardWriter clipboard_writer(&clipboard); |
| 276 clipboard_writer.WriteBitmapFromPixels(fake_bitmap, gfx::Size(3, 4)); | 276 clipboard_writer.WriteBitmapFromPixels(fake_bitmap, gfx::Size(3, 4)); |
| 277 } | 277 } |
| 278 | 278 |
| 279 EXPECT_EQ(true, clipboard.IsFormatAvailable( | 279 EXPECT_EQ(true, clipboard.IsFormatAvailable( |
| 280 Clipboard::GetBitmapFormatType())); | 280 Clipboard::GetBitmapFormatType())); |
| 281 } | 281 } |
| 282 #endif // defined(OS_WIN) | 282 #endif // defined(OS_WIN) |
| 283 | |
| OLD | NEW |