summaryrefslogtreecommitdiffstats
path: root/o3d/plugin
diff options
context:
space:
mode:
authormstrydom@google.com <mstrydom@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 22:21:31 +0000
committermstrydom@google.com <mstrydom@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 22:21:31 +0000
commit8607f6dae7f80f494d55cb6701234ca7be18738b (patch)
tree2121ef79ee8402d5ada98b5c634c76c30263af1a /o3d/plugin
parent74d7f63a55085f2d7badff916b08ebe459184b9b (diff)
downloadchromium_src-8607f6dae7f80f494d55cb6701234ca7be18738b.zip
chromium_src-8607f6dae7f80f494d55cb6701234ca7be18738b.tar.gz
chromium_src-8607f6dae7f80f494d55cb6701234ca7be18738b.tar.bz2
This CL adds the createRawDataFromDataURL function to o3d.Pack. The function
takes as input a data URL, decodes the data, and returns the raw data in a RawData object. If the data URL has an invalid format, an error message is displayed. Currently only data URL's encoded in base64 are supported. The mime type is ignored. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25252 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin')
-rw-r--r--o3d/plugin/idl/pack.idl7
1 files changed, 7 insertions, 0 deletions
diff --git a/o3d/plugin/idl/pack.idl b/o3d/plugin/idl/pack.idl
index 3d63f6b..3fd5b6d 100644
--- a/o3d/plugin/idl/pack.idl
+++ b/o3d/plugin/idl/pack.idl
@@ -325,6 +325,13 @@ typedef Bitmap[] BitmapArray;
\return An Array of Bitmaps object.
%]
BitmapArray CreateBitmapsFromRawData(RawData raw_data);
+
+ %[
+ Create RawData given a data URL.
+ \param data_url The data URL from which to create the RawData.
+ \return The RawData.
+ %]
+ RawData CreateRawDataFromDataURL(String data_url);
}; // Pack
} // namespace o3d