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

Side by Side Diff: webkit/plugins/ppapi/ppb_pdf_impl.cc

Issue 6626030: New assets for PDF progress control. Added asset for drop shadow.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « webkit/glue/webkit_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/plugins/ppapi/ppb_pdf_impl.h" 5 #include "webkit/plugins/ppapi/ppb_pdf_impl.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "grit/webkit_resources.h" 10 #include "grit/webkit_resources.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_1, IDR_PDF_PROGRESS_BAR_1 }, 84 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_1, IDR_PDF_PROGRESS_BAR_1 },
85 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_2, IDR_PDF_PROGRESS_BAR_2 }, 85 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_2, IDR_PDF_PROGRESS_BAR_2 },
86 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_3, IDR_PDF_PROGRESS_BAR_3 }, 86 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_3, IDR_PDF_PROGRESS_BAR_3 },
87 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_4, IDR_PDF_PROGRESS_BAR_4 }, 87 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_4, IDR_PDF_PROGRESS_BAR_4 },
88 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_5, IDR_PDF_PROGRESS_BAR_5 }, 88 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_5, IDR_PDF_PROGRESS_BAR_5 },
89 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_6, IDR_PDF_PROGRESS_BAR_6 }, 89 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_6, IDR_PDF_PROGRESS_BAR_6 },
90 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_7, IDR_PDF_PROGRESS_BAR_7 }, 90 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_7, IDR_PDF_PROGRESS_BAR_7 },
91 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_8, IDR_PDF_PROGRESS_BAR_8 }, 91 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_8, IDR_PDF_PROGRESS_BAR_8 },
92 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_BACKGROUND, 92 { PP_RESOURCEIMAGE_PDF_PROGRESS_BAR_BACKGROUND,
93 IDR_PDF_PROGRESS_BAR_BACKGROUND }, 93 IDR_PDF_PROGRESS_BAR_BACKGROUND },
94 { PP_RESOURCEIMAGE_PDF_PAGE_DROPSHADOW, IDR_PDF_PAGE_DROPSHADOW },
94 }; 95 };
95 96
96 PP_Var GetLocalizedString(PP_Instance instance_id, 97 PP_Var GetLocalizedString(PP_Instance instance_id,
97 PP_ResourceString string_id) { 98 PP_ResourceString string_id) {
98 PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id); 99 PluginInstance* instance = ResourceTracker::Get()->GetInstance(instance_id);
99 if (!instance) 100 if (!instance)
100 return PP_MakeUndefined(); 101 return PP_MakeUndefined();
101 102
102 std::string rv; 103 std::string rv;
103 if (string_id == PP_RESOURCESTRING_PDFGETPASSWORD) { 104 if (string_id == PP_RESOURCESTRING_PDFGETPASSWORD) {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 bool rv = webkit_glue::GetFontTable( 323 bool rv = webkit_glue::GetFontTable(
323 fd_, table, static_cast<uint8_t*>(output), &temp_size); 324 fd_, table, static_cast<uint8_t*>(output), &temp_size);
324 *output_length = static_cast<uint32_t>(temp_size); 325 *output_length = static_cast<uint32_t>(temp_size);
325 return rv; 326 return rv;
326 } 327 }
327 #endif 328 #endif
328 329
329 } // namespace ppapi 330 } // namespace ppapi
330 } // namespace webkit 331 } // namespace webkit
331 332
OLDNEW
« no previous file with comments | « webkit/glue/webkit_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698