OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_pdf_host.h" | 5 #include "chrome/renderer/pepper/pepper_pdf_host.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/common/render_messages.h" | 8 #include "chrome/common/render_messages.h" |
9 #include "chrome/renderer/printing/print_web_view_helper.h" | 9 #include "chrome/renderer/printing/print_web_view_helper.h" |
10 #include "content/public/common/referrer.h" | 10 #include "content/public/common/referrer.h" |
11 #include "content/public/renderer/pepper_plugin_instance.h" | 11 #include "content/public/renderer/pepper_plugin_instance.h" |
12 #include "content/public/renderer/render_thread.h" | 12 #include "content/public/renderer/render_thread.h" |
13 #include "content/public/renderer/render_view.h" | 13 #include "content/public/renderer/render_view.h" |
14 #include "content/public/renderer/renderer_ppapi_host.h" | 14 #include "content/public/renderer/renderer_ppapi_host.h" |
15 #include "grit/content_strings.h" | |
Nico
2014/08/07 15:14:09
Can you use a qualified include for this? Then you
tfarina
2014/08/07 15:59:28
I'm all for it. I will try this later tonight.
| |
15 #include "grit/webkit_resources.h" | 16 #include "grit/webkit_resources.h" |
16 #include "grit/webkit_strings.h" | |
17 #include "ppapi/host/dispatch_host_message.h" | 17 #include "ppapi/host/dispatch_host_message.h" |
18 #include "ppapi/host/host_message_context.h" | 18 #include "ppapi/host/host_message_context.h" |
19 #include "ppapi/host/ppapi_host.h" | 19 #include "ppapi/host/ppapi_host.h" |
20 #include "ppapi/proxy/host_dispatcher.h" | 20 #include "ppapi/proxy/host_dispatcher.h" |
21 #include "ppapi/proxy/ppapi_messages.h" | 21 #include "ppapi/proxy/ppapi_messages.h" |
22 #include "ppapi/proxy/ppb_image_data_proxy.h" | 22 #include "ppapi/proxy/ppb_image_data_proxy.h" |
23 #include "ppapi/shared_impl/ppb_image_data_shared.h" | 23 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
24 #include "ppapi/shared_impl/scoped_pp_resource.h" | 24 #include "ppapi/shared_impl/scoped_pp_resource.h" |
25 #include "ppapi/thunk/enter.h" | 25 #include "ppapi/thunk/enter.h" |
26 #include "ppapi/thunk/ppb_image_data_api.h" | 26 #include "ppapi/thunk/ppb_image_data_api.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
384 | 384 |
385 const SkBitmap* bitmap = &skia::GetTopDevice(*canvas)->accessBitmap(false); | 385 const SkBitmap* bitmap = &skia::GetTopDevice(*canvas)->accessBitmap(false); |
386 pixels_to_write.copyPixelsTo( | 386 pixels_to_write.copyPixelsTo( |
387 bitmap->getPixels(), bitmap->getSize(), bitmap->rowBytes()); | 387 bitmap->getPixels(), bitmap->getSize(), bitmap->rowBytes()); |
388 | 388 |
389 if (needs_unmapping) | 389 if (needs_unmapping) |
390 image_data->Unmap(); | 390 image_data->Unmap(); |
391 | 391 |
392 return true; | 392 return true; |
393 } | 393 } |
OLD | NEW |