| 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/proxy/pdf_resource.h" | 5 #include "ppapi/proxy/pdf_resource.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
| 13 #include "ppapi/c/private/ppb_pdf.h" | 13 #include "ppapi/c/private/ppb_pdf.h" |
| 14 #include "ppapi/proxy/ppapi_messages.h" | 14 #include "ppapi/proxy/ppapi_messages.h" |
| 15 #include "ppapi/proxy/ppb_image_data_proxy.h" | 15 #include "ppapi/proxy/ppb_image_data_proxy.h" |
| 16 #include "ppapi/shared_impl/var.h" | 16 #include "ppapi/shared_impl/var.h" |
| 17 #include "third_party/icu/public/i18n/unicode/usearch.h" | 17 #include "third_party/icu/source/i18n/unicode/usearch.h" |
| 18 | 18 |
| 19 namespace ppapi { | 19 namespace ppapi { |
| 20 namespace proxy { | 20 namespace proxy { |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // TODO(raymes): This is just copied from render_thread_impl.cc. We should have | 24 // TODO(raymes): This is just copied from render_thread_impl.cc. We should have |
| 25 // generic code somewhere to get the locale in the plugin. | 25 // generic code somewhere to get the locale in the plugin. |
| 26 std::string GetLocale() { | 26 std::string GetLocale() { |
| 27 // The browser process should have passed the locale to the plugin via the | 27 // The browser process should have passed the locale to the plugin via the |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 return 0; | 183 return 0; |
| 184 return (new SimpleImageData(resource, image_desc, handle))->GetReference(); | 184 return (new SimpleImageData(resource, image_desc, handle))->GetReference(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 PP_Resource PDFResource::GetResourceImage(PP_ResourceImage image_id) { | 187 PP_Resource PDFResource::GetResourceImage(PP_ResourceImage image_id) { |
| 188 return GetResourceImageForScale(image_id, 1.0f); | 188 return GetResourceImageForScale(image_id, 1.0f); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace proxy | 191 } // namespace proxy |
| 192 } // namespace ppapi | 192 } // namespace ppapi |
| OLD | NEW |