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

Side by Side Diff: components/pdf/renderer/pepper_pdf_host.h

Issue 554893002: [WORK_IN_PROGRESS] PDF::Save() fix for out-of-process-pdf. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix for constrained windows Created 6 years, 3 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/pdf/renderer/pepper_pdf_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ 5 #ifndef COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_
6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ 6 #define COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context); 54 int32_t OnHostMsgDidStopLoading(ppapi::host::HostMessageContext* context);
55 int32_t OnHostMsgSetContentRestriction( 55 int32_t OnHostMsgSetContentRestriction(
56 ppapi::host::HostMessageContext* context, 56 ppapi::host::HostMessageContext* context,
57 int restrictions); 57 int restrictions);
58 int32_t OnHostMsgUserMetricsRecordAction( 58 int32_t OnHostMsgUserMetricsRecordAction(
59 ppapi::host::HostMessageContext* context, 59 ppapi::host::HostMessageContext* context,
60 const std::string& action); 60 const std::string& action);
61 int32_t OnHostMsgHasUnsupportedFeature( 61 int32_t OnHostMsgHasUnsupportedFeature(
62 ppapi::host::HostMessageContext* context); 62 ppapi::host::HostMessageContext* context);
63 int32_t OnHostMsgPrint(ppapi::host::HostMessageContext* context); 63 int32_t OnHostMsgPrint(ppapi::host::HostMessageContext* context);
64 int32_t OnHostMsgSaveAs(ppapi::host::HostMessageContext* context); 64 int32_t OnHostMsgSaveAs(ppapi::host::HostMessageContext* context,
65 const std::string& stream_original_url);
65 int32_t OnHostMsgGetResourceImage(ppapi::host::HostMessageContext* context, 66 int32_t OnHostMsgGetResourceImage(ppapi::host::HostMessageContext* context,
66 PP_ResourceImage image_id, 67 PP_ResourceImage image_id,
67 float scale); 68 float scale);
68 int32_t OnHostMsgSetSelectedText(ppapi::host::HostMessageContext* context, 69 int32_t OnHostMsgSetSelectedText(ppapi::host::HostMessageContext* context,
69 const base::string16& selected_text); 70 const base::string16& selected_text);
70 int32_t OnHostMsgSetLinkUnderCursor(ppapi::host::HostMessageContext* context, 71 int32_t OnHostMsgSetLinkUnderCursor(ppapi::host::HostMessageContext* context,
71 const std::string& url); 72 const std::string& url);
72 73
73 bool CreateImageData(PP_Instance instance, 74 bool CreateImageData(PP_Instance instance,
74 PP_ImageDataFormat format, 75 PP_ImageDataFormat format,
75 const PP_Size& size, 76 const PP_Size& size,
76 const SkBitmap& pixels_to_write, 77 const SkBitmap& pixels_to_write,
77 ppapi::HostResource* result, 78 ppapi::HostResource* result,
78 PP_ImageDataDesc* out_image_data_desc, 79 PP_ImageDataDesc* out_image_data_desc,
79 IPC::PlatformFileForTransit* out_image_handle, 80 IPC::PlatformFileForTransit* out_image_handle,
80 uint32_t* out_byte_count); 81 uint32_t* out_byte_count);
81 82
82 content::RendererPpapiHost* host_; 83 content::RendererPpapiHost* host_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost); 85 DISALLOW_COPY_AND_ASSIGN(PepperPDFHost);
85 }; 86 };
86 87
87 } // namespace pdf 88 } // namespace pdf
88 89
89 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_ 90 #endif // COMPONENTS_PDF_RENDERER_PEPPER_PDF_HOST_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | components/pdf/renderer/pepper_pdf_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698