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 #include "webkit/glue/plugins/pepper_plugin_instance.h" | 5 #include "webkit/glue/plugins/pepper_plugin_instance.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include "base/mac_util.h" | 10 #include "base/mac_util.h" |
11 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
12 #endif | 12 #endif |
13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "gfx/rect.h" | 15 #include "gfx/rect.h" |
16 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
17 #include "gfx/codec/jpeg_codec.h" | 17 #include "gfx/codec/jpeg_codec.h" |
18 #include "gfx/gdi_util.h" | 18 #include "gfx/gdi_util.h" |
19 #endif | 19 #endif |
20 #include "gfx/skia_util.h" | 20 #include "gfx/skia_util.h" |
| 21 #include "ppapi/c/dev/ppb_find_dev.h" |
| 22 #include "ppapi/c/dev/ppb_fullscreen_dev.h" |
| 23 #include "ppapi/c/dev/ppb_zoom_dev.h" |
| 24 #include "ppapi/c/dev/ppp_find_dev.h" |
| 25 #include "ppapi/c/dev/ppp_selection_dev.h" |
| 26 #include "ppapi/c/dev/ppp_zoom_dev.h" |
| 27 #include "ppapi/c/pp_input_event.h" |
| 28 #include "ppapi/c/pp_instance.h" |
| 29 #include "ppapi/c/pp_rect.h" |
| 30 #include "ppapi/c/pp_resource.h" |
| 31 #include "ppapi/c/pp_var.h" |
| 32 #include "ppapi/c/ppb_core.h" |
| 33 #include "ppapi/c/ppb_instance.h" |
| 34 #include "ppapi/c/ppp_instance.h" |
21 #include "printing/native_metafile.h" | 35 #include "printing/native_metafile.h" |
22 #include "printing/units.h" | 36 #include "printing/units.h" |
23 #include "skia/ext/vector_platform_device.h" | 37 #include "skia/ext/vector_platform_device.h" |
24 #include "skia/ext/platform_canvas.h" | 38 #include "skia/ext/platform_canvas.h" |
25 #include "third_party/ppapi/c/dev/ppb_find_dev.h" | |
26 #include "third_party/ppapi/c/dev/ppb_fullscreen_dev.h" | |
27 #include "third_party/ppapi/c/dev/ppb_zoom_dev.h" | |
28 #include "third_party/ppapi/c/dev/ppp_find_dev.h" | |
29 #include "third_party/ppapi/c/dev/ppp_selection_dev.h" | |
30 #include "third_party/ppapi/c/dev/ppp_zoom_dev.h" | |
31 #include "third_party/ppapi/c/pp_input_event.h" | |
32 #include "third_party/ppapi/c/pp_instance.h" | |
33 #include "third_party/ppapi/c/pp_rect.h" | |
34 #include "third_party/ppapi/c/pp_resource.h" | |
35 #include "third_party/ppapi/c/pp_var.h" | |
36 #include "third_party/ppapi/c/ppb_core.h" | |
37 #include "third_party/ppapi/c/ppb_instance.h" | |
38 #include "third_party/ppapi/c/ppp_instance.h" | |
39 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" | 39 #include "third_party/WebKit/WebKit/chromium/public/WebBindings.h" |
40 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" | 40 #include "third_party/WebKit/WebKit/chromium/public/WebCursorInfo.h" |
41 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" | 41 #include "third_party/WebKit/WebKit/chromium/public/WebDocument.h" |
42 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" | 42 #include "third_party/WebKit/WebKit/chromium/public/WebElement.h" |
43 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" | 43 #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" |
44 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 44 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
45 #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h" | 45 #include "third_party/WebKit/WebKit/chromium/public/WebPluginContainer.h" |
46 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 46 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
47 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" | 47 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" |
48 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" | 48 #include "third_party/WebKit/WebKit/chromium/public/WebURLRequest.h" |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 bounds.size.width = dest_rect.width(); | 1084 bounds.size.width = dest_rect.width(); |
1085 bounds.size.height = dest_rect.height(); | 1085 bounds.size.height = dest_rect.height(); |
1086 | 1086 |
1087 CGContextDrawImage(canvas, bounds, image); | 1087 CGContextDrawImage(canvas, bounds, image); |
1088 CGContextRestoreGState(canvas); | 1088 CGContextRestoreGState(canvas); |
1089 } | 1089 } |
1090 #endif // defined(OS_MACOSX) | 1090 #endif // defined(OS_MACOSX) |
1091 | 1091 |
1092 | 1092 |
1093 } // namespace pepper | 1093 } // namespace pepper |
OLD | NEW |