Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: chrome/renderer/pepper/pepper_pdf_host.cc

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/ppapi_plugin_instance.h"
11 #include "content/public/renderer/render_thread.h" 12 #include "content/public/renderer/render_thread.h"
12 #include "content/public/renderer/render_view.h" 13 #include "content/public/renderer/render_view.h"
13 #include "content/public/renderer/renderer_ppapi_host.h" 14 #include "content/public/renderer/renderer_ppapi_host.h"
14 #include "grit/webkit_resources.h" 15 #include "grit/webkit_resources.h"
15 #include "grit/webkit_strings.h" 16 #include "grit/webkit_strings.h"
16 #include "ppapi/host/dispatch_host_message.h" 17 #include "ppapi/host/dispatch_host_message.h"
17 #include "ppapi/host/host_message_context.h" 18 #include "ppapi/host/host_message_context.h"
18 #include "ppapi/host/ppapi_host.h" 19 #include "ppapi/host/ppapi_host.h"
19 #include "ppapi/proxy/host_dispatcher.h" 20 #include "ppapi/proxy/host_dispatcher.h"
20 #include "ppapi/proxy/ppapi_messages.h" 21 #include "ppapi/proxy/ppapi_messages.h"
21 #include "ppapi/proxy/ppb_image_data_proxy.h" 22 #include "ppapi/proxy/ppb_image_data_proxy.h"
22 #include "ppapi/shared_impl/ppb_image_data_shared.h" 23 #include "ppapi/shared_impl/ppb_image_data_shared.h"
23 #include "ppapi/shared_impl/scoped_pp_resource.h" 24 #include "ppapi/shared_impl/scoped_pp_resource.h"
24 #include "ppapi/thunk/enter.h" 25 #include "ppapi/thunk/enter.h"
25 #include "ppapi/thunk/ppb_image_data_api.h" 26 #include "ppapi/thunk/ppb_image_data_api.h"
26 #include "skia/ext/platform_canvas.h" 27 #include "skia/ext/platform_canvas.h"
27 #include "third_party/WebKit/public/web/WebDocument.h" 28 #include "third_party/WebKit/public/web/WebDocument.h"
28 #include "third_party/WebKit/public/web/WebElement.h" 29 #include "third_party/WebKit/public/web/WebElement.h"
29 #include "third_party/WebKit/public/web/WebFrame.h" 30 #include "third_party/WebKit/public/web/WebFrame.h"
30 #include "third_party/WebKit/public/web/WebPluginContainer.h" 31 #include "third_party/WebKit/public/web/WebPluginContainer.h"
31 #include "third_party/WebKit/public/web/WebView.h" 32 #include "third_party/WebKit/public/web/WebView.h"
32 #include "third_party/skia/include/core/SkBitmap.h" 33 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "ui/base/l10n/l10n_util.h" 34 #include "ui/base/l10n/l10n_util.h"
34 #include "ui/base/layout.h" 35 #include "ui/base/layout.h"
35 #include "ui/base/resource/resource_bundle.h" 36 #include "ui/base/resource/resource_bundle.h"
36 #include "ui/gfx/image/image_skia.h" 37 #include "ui/gfx/image/image_skia.h"
37 #include "ui/gfx/image/image_skia_rep.h" 38 #include "ui/gfx/image/image_skia_rep.h"
38 #include "ui/gfx/point.h" 39 #include "ui/gfx/point.h"
39 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
40 40
41 using webkit::ppapi::PluginInstance; 41 using webkit::ppapi::PluginInstance;
42 42
43 namespace chrome { 43 namespace chrome {
44 44
45 namespace { 45 namespace {
46 46
47 struct ResourceImageInfo { 47 struct ResourceImageInfo {
48 PP_ResourceImage pp_id; 48 PP_ResourceImage pp_id;
49 int res_id; 49 int res_id;
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 bitmap->getSize(), 390 bitmap->getSize(),
391 bitmap->rowBytes()); 391 bitmap->rowBytes());
392 392
393 if (needs_unmapping) 393 if (needs_unmapping)
394 image_data->Unmap(); 394 image_data->Unmap();
395 395
396 return true; 396 return true;
397 } 397 }
398 398
399 } // namespace chrome 399 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/renderer/pepper/pepper_flash_renderer_host.cc ('k') | chrome/renderer/pepper/pepper_shared_memory_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698