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

Unified Diff: experimental/PdfViewer/SkPdfSoundActionDictionary_autogen.h

Issue 16975013: Deal with ca and CA transparency operators in pdf. add comments to generated classes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: experimental/PdfViewer/SkPdfSoundActionDictionary_autogen.h
===================================================================
--- experimental/PdfViewer/SkPdfSoundActionDictionary_autogen.h (revision 9684)
+++ experimental/PdfViewer/SkPdfSoundActionDictionary_autogen.h (working copy)
@@ -5,6 +5,7 @@
#include "SkPdfArray_autogen.h"
#include "SkPdfDictionary_autogen.h"
+// Additional entries specific to a sound action
class SkPdfSoundActionDictionary : public SkPdfDictionary {
public:
virtual SkPdfObjectType getType() const { return kSoundActionDictionary_SkPdfObjectType;}
@@ -521,6 +522,13 @@
SkPdfSoundActionDictionary& operator=(const SkPdfSoundActionDictionary& from) {this->fPodofoDoc = from.fPodofoDoc; this->fPodofoObj = from.fPodofoObj; return *this;}
+/** (Required) The type of action that this dictionary describes; must be Sound
+ * for a sound action.
+**/
+ bool has_S() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", NULL));
+ }
+
std::string S() const {
std::string ret;
if (NameFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "S", "", &ret)) return ret;
@@ -528,6 +536,13 @@
return "";
}
+/** (Required) A sound object defining the sound to be played (see Section 8.7,
+ * "Sounds"; see also implementation note 76 in Appendix H).
+**/
+ bool has_Sound() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", NULL));
+ }
+
SkPdfStream Sound() const {
SkPdfStream ret;
if (StreamFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Sound", "", &ret)) return ret;
@@ -535,6 +550,14 @@
return SkPdfStream();
}
+/** (Optional) The volume at which to play the sound, in the range -1.0 to 1.0.
+ * Higher values denote greater volume; negative values mute the sound.
+ * Default value: 1.0.
+**/
+ bool has_Volume() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", NULL));
+ }
+
double Volume() const {
double ret;
if (DoubleFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Volume", "", &ret)) return ret;
@@ -542,6 +565,15 @@
return 0;
}
+/** (Optional) A flag specifying whether to play the sound synchronously or
+ * asynchronously. If this flag is true, the viewer application will retain control,
+ * allowing no further user interaction other than canceling the sound, until the
+ * sound has been completely played. Default value: false.
+**/
+ bool has_Synchronous() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", NULL));
+ }
+
bool Synchronous() const {
bool ret;
if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Synchronous", "", &ret)) return ret;
@@ -549,6 +581,13 @@
return false;
}
+/** (Optional) A flag specifying whether to repeat the sound indefinitely. If this
+ * entry is present, the Synchronous entry is ignored. Default value: false.
+**/
+ bool has_Repeat() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Repeat", "", NULL));
+ }
+
bool Repeat() const {
bool ret;
if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Repeat", "", &ret)) return ret;
@@ -556,6 +595,15 @@
return false;
}
+/** (Optional) A flag specifying whether to mix this sound with any other sound
+ * already playing. If this flag is false, any previously playing sound will be
+ * stopped before starting this sound; this can be used to stop a repeating sound
+ * (see Repeat, above). Default value: false.
+**/
+ bool has_Mix() const {
+ return (ObjectFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mix", "", NULL));
+ }
+
bool Mix() const {
bool ret;
if (BoolFromDictionary(fPodofoDoc, fPodofoObj->GetDictionary(), "Mix", "", &ret)) return ret;

Powered by Google App Engine
This is Rietveld 408576698