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 "ppapi/cpp/private/pdf.h" | 5 #include "ppapi/cpp/private/pdf.h" |
6 | 6 |
7 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" | 7 #include "ppapi/c/trusted/ppb_browser_font_trusted.h" |
8 #include "ppapi/cpp/image_data.h" | 8 #include "ppapi/cpp/image_data.h" |
9 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
10 #include "ppapi/cpp/module_impl.h" | 10 #include "ppapi/cpp/module_impl.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 122 } |
123 } | 123 } |
124 | 124 |
125 // static | 125 // static |
126 void PDF::HasUnsupportedFeature(const InstanceHandle& instance) { | 126 void PDF::HasUnsupportedFeature(const InstanceHandle& instance) { |
127 if (has_interface<PPB_PDF>()) | 127 if (has_interface<PPB_PDF>()) |
128 get_interface<PPB_PDF>()->HasUnsupportedFeature(instance.pp_instance()); | 128 get_interface<PPB_PDF>()->HasUnsupportedFeature(instance.pp_instance()); |
129 } | 129 } |
130 | 130 |
131 // static | 131 // static |
132 void PDF::SaveAs(const InstanceHandle& instance) { | 132 void PDF::SaveAs(const InstanceHandle& instance, const Var& action) { |
133 if (has_interface<PPB_PDF>()) | 133 if (has_interface<PPB_PDF>()) |
134 get_interface<PPB_PDF>()->SaveAs(instance.pp_instance()); | 134 get_interface<PPB_PDF>()->SaveAs(instance.pp_instance(), action.pp_var()); |
135 } | 135 } |
136 | 136 |
137 // static | 137 // static |
138 void PDF::Print(const InstanceHandle& instance) { | 138 void PDF::Print(const InstanceHandle& instance) { |
139 if (has_interface<PPB_PDF>()) | 139 if (has_interface<PPB_PDF>()) |
140 get_interface<PPB_PDF>()->Print(instance.pp_instance()); | 140 get_interface<PPB_PDF>()->Print(instance.pp_instance()); |
141 } | 141 } |
142 | 142 |
143 // static | 143 // static |
144 bool PDF::IsFeatureEnabled(const InstanceHandle& instance, | 144 bool PDF::IsFeatureEnabled(const InstanceHandle& instance, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 } | 192 } |
193 | 193 |
194 // static | 194 // static |
195 void PDF::SetLinkUnderCursor(const InstanceHandle& instance, const char* url) { | 195 void PDF::SetLinkUnderCursor(const InstanceHandle& instance, const char* url) { |
196 if (has_interface<PPB_PDF>()) | 196 if (has_interface<PPB_PDF>()) |
197 get_interface<PPB_PDF>()->SetLinkUnderCursor(instance.pp_instance(), url); | 197 get_interface<PPB_PDF>()->SetLinkUnderCursor(instance.pp_instance(), url); |
198 } | 198 } |
199 | 199 |
200 } // namespace pp | 200 } // namespace pp |
OLD | NEW |