| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #define PEPPER_APIS_ENABLED 1 | 5 #define PEPPER_APIS_ENABLED 1 |
| 6 | 6 |
| 7 #include "chrome/renderer/webplugin_delegate_pepper.h" | 7 #include "chrome/renderer/webplugin_delegate_pepper.h" |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #endif | 28 #endif |
| 29 #include "base/scoped_ptr.h" | 29 #include "base/scoped_ptr.h" |
| 30 #include "base/stats_counters.h" | 30 #include "base/stats_counters.h" |
| 31 #include "base/string_number_conversions.h" | 31 #include "base/string_number_conversions.h" |
| 32 #include "base/string_util.h" | 32 #include "base/string_util.h" |
| 33 #include "base/task.h" | 33 #include "base/task.h" |
| 34 #include "base/time.h" | 34 #include "base/time.h" |
| 35 #include "base/utf_string_conversions.h" | 35 #include "base/utf_string_conversions.h" |
| 36 #include "chrome/common/chrome_paths.h" | 36 #include "chrome/common/chrome_paths.h" |
| 37 #include "chrome/common/render_messages.h" | 37 #include "chrome/common/render_messages.h" |
| 38 #include "chrome/common/render_messages_params.h" |
| 38 #include "chrome/renderer/pepper_widget.h" | 39 #include "chrome/renderer/pepper_widget.h" |
| 39 #include "chrome/renderer/render_thread.h" | 40 #include "chrome/renderer/render_thread.h" |
| 40 #include "chrome/renderer/render_view.h" | 41 #include "chrome/renderer/render_view.h" |
| 41 #if defined(OS_LINUX) | 42 #if defined(OS_LINUX) |
| 42 #include "chrome/renderer/renderer_sandbox_support_linux.h" | 43 #include "chrome/renderer/renderer_sandbox_support_linux.h" |
| 43 #endif | 44 #endif |
| 44 #include "chrome/renderer/webplugin_delegate_proxy.h" | 45 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 45 #include "gfx/blit.h" | 46 #include "gfx/blit.h" |
| 46 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
| 47 #include "gfx/codec/jpeg_codec.h" | 48 #include "gfx/codec/jpeg_codec.h" |
| (...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 CGRect bounds; | 1759 CGRect bounds; |
| 1759 bounds.origin.x = dest_rect.x(); | 1760 bounds.origin.x = dest_rect.x(); |
| 1760 bounds.origin.y = canvas_height - dest_rect.y() - dest_rect.height(); | 1761 bounds.origin.y = canvas_height - dest_rect.y() - dest_rect.height(); |
| 1761 bounds.size.width = dest_rect.width(); | 1762 bounds.size.width = dest_rect.width(); |
| 1762 bounds.size.height = dest_rect.height(); | 1763 bounds.size.height = dest_rect.height(); |
| 1763 | 1764 |
| 1764 CGContextDrawImage(canvas, bounds, image); | 1765 CGContextDrawImage(canvas, bounds, image); |
| 1765 CGContextRestoreGState(canvas); | 1766 CGContextRestoreGState(canvas); |
| 1766 } | 1767 } |
| 1767 #endif // defined(OS_MACOSX) | 1768 #endif // defined(OS_MACOSX) |
| OLD | NEW |