| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/pepper/pepper_flash_renderer_host.h" | 5 #include "chrome/renderer/pepper/pepper_flash_renderer_host.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #include "ppapi/proxy/serialized_structs.h" | 25 #include "ppapi/proxy/serialized_structs.h" |
| 26 #include "ppapi/thunk/enter.h" | 26 #include "ppapi/thunk/enter.h" |
| 27 #include "ppapi/thunk/ppb_image_data_api.h" | 27 #include "ppapi/thunk/ppb_image_data_api.h" |
| 28 #include "skia/ext/platform_canvas.h" | 28 #include "skia/ext/platform_canvas.h" |
| 29 #include "third_party/skia/include/core/SkCanvas.h" | 29 #include "third_party/skia/include/core/SkCanvas.h" |
| 30 #include "third_party/skia/include/core/SkMatrix.h" | 30 #include "third_party/skia/include/core/SkMatrix.h" |
| 31 #include "third_party/skia/include/core/SkPaint.h" | 31 #include "third_party/skia/include/core/SkPaint.h" |
| 32 #include "third_party/skia/include/core/SkPoint.h" | 32 #include "third_party/skia/include/core/SkPoint.h" |
| 33 #include "third_party/skia/include/core/SkTemplates.h" | 33 #include "third_party/skia/include/core/SkTemplates.h" |
| 34 #include "third_party/skia/include/core/SkTypeface.h" | 34 #include "third_party/skia/include/core/SkTypeface.h" |
| 35 #include "ui/gfx/rect.h" | 35 #include "ui/gfx/geometry/rect.h" |
| 36 #include "url/gurl.h" | 36 #include "url/gurl.h" |
| 37 | 37 |
| 38 using ppapi::thunk::EnterResourceNoLock; | 38 using ppapi::thunk::EnterResourceNoLock; |
| 39 using ppapi::thunk::PPB_ImageData_API; | 39 using ppapi::thunk::PPB_ImageData_API; |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 // Some non-simple HTTP request headers that Flash may set. | 43 // Some non-simple HTTP request headers that Flash may set. |
| 44 // (Please see http://www.w3.org/TR/cors/#simple-header for the definition of | 44 // (Please see http://www.w3.org/TR/cors/#simple-header for the definition of |
| 45 // simple headers.) | 45 // simple headers.) |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 rect.point.x, rect.point.y, rect.size.width, rect.size.height))) | 373 rect.point.x, rect.point.y, rect.size.width, rect.size.height))) |
| 374 return PP_OK; | 374 return PP_OK; |
| 375 return PP_ERROR_FAILED; | 375 return PP_ERROR_FAILED; |
| 376 } | 376 } |
| 377 | 377 |
| 378 int32_t PepperFlashRendererHost::OnInvokePrinting( | 378 int32_t PepperFlashRendererHost::OnInvokePrinting( |
| 379 ppapi::host::HostMessageContext* host_context) { | 379 ppapi::host::HostMessageContext* host_context) { |
| 380 pdf::PPB_PDF_Impl::InvokePrintingForInstance(pp_instance()); | 380 pdf::PPB_PDF_Impl::InvokePrintingForInstance(pp_instance()); |
| 381 return PP_OK; | 381 return PP_OK; |
| 382 } | 382 } |
| OLD | NEW |