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

Unified Diff: core/fpdfdoc/cpdf_viewerpreferences.h

Issue 2475923003: Implement FPDF_VIEWERREF_GetName() API. (Closed)
Patch Set: Comment Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | core/fpdfdoc/cpdf_viewerpreferences.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/cpdf_viewerpreferences.h
diff --git a/core/fpdfdoc/cpdf_viewerpreferences.h b/core/fpdfdoc/cpdf_viewerpreferences.h
index c64292d9f91314fd73a56888b193f287ec2a5c72..c7e9112380d6b685fc6a454ac0d31ed6bcb0b893 100644
--- a/core/fpdfdoc/cpdf_viewerpreferences.h
+++ b/core/fpdfdoc/cpdf_viewerpreferences.h
@@ -25,6 +25,11 @@ class CPDF_ViewerPreferences {
CPDF_Array* PrintPageRange() const;
CFX_ByteString Duplex() const;
+ // Gets the entry for |bsKey|. If the entry exists and it is of type name,
+ // then this method writes the value into |bsVal| and returns true. Otherwise
+ // returns false and |bsVal| is untouched. |bsVal| must not be NULL.
+ bool GenericName(const CFX_ByteString& bsKey, CFX_ByteString* bsVal) const;
+
private:
CPDF_Dictionary* GetViewerPreferences() const;
« no previous file with comments | « no previous file | core/fpdfdoc/cpdf_viewerpreferences.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698