| OLD | NEW |
| 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 #include "components/pdf/renderer/pdf_resource_util.h" | 5 #include "components/pdf/renderer/pdf_resource_util.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "components/strings/grit/components_strings.h" | 8 #include "components/strings/grit/components_strings.h" |
| 9 #include "grit/component_scaled_resources.h" | 9 #include "grit/components_scaled_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| 11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 struct ResourceImageInfo { | 15 struct ResourceImageInfo { |
| 16 PP_ResourceImage pp_id; | 16 PP_ResourceImage pp_id; |
| 17 int res_id; | 17 int res_id; |
| 18 }; | 18 }; |
| 19 | 19 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 break; | 104 break; |
| 105 case PP_RESOURCESTRING_PDFPROGRESSLOADING: | 105 case PP_RESOURCESTRING_PDFPROGRESSLOADING: |
| 106 resource_id = IDS_PDF_PROGRESS_LOADING; | 106 resource_id = IDS_PDF_PROGRESS_LOADING; |
| 107 break; | 107 break; |
| 108 } | 108 } |
| 109 | 109 |
| 110 return base::UTF16ToUTF8(l10n_util::GetStringUTF16(resource_id)); | 110 return base::UTF16ToUTF8(l10n_util::GetStringUTF16(resource_id)); |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace pdf | 113 } // namespace pdf |
| OLD | NEW |