Revision: 5629
Author:   [email protected]
Date:     Mon Nov 18 17:18:21 2013 UTC
Log:      Add some missing Picker methods to taming
https://codereview.appspot.com/28040043



[email protected]

http://code.google.com/p/google-caja/source/detail?r=5629

Modified:
 /trunk/src/com/google/caja/apitaming/google.picker.policyFactory.js
 /trunk/tests/com/google/caja/apitaming/picker/allviews.html

=======================================
--- /trunk/src/com/google/caja/apitaming/google.picker.policyFactory.js Wed Jan 30 22:57:22 2013 UTC +++ /trunk/src/com/google/caja/apitaming/google.picker.policyFactory.js Mon Nov 18 17:18:21 2013 UTC
@@ -42,6 +42,7 @@

   p.DocsView = function() {};
   p.DocsView.__super__ = ['google', 'picker', 'View'];
+  p.DocsView.prototype.setSelectFolderEnabled = function() {};
   p.DocsView.prototype.setIncludeFolders = function() {};
   p.DocsView.prototype.setMode = function() {};
   p.DocsView.prototype.setOwnedByMe = function() {};
@@ -130,8 +131,10 @@
   p.PickerBuilder.prototype.setAppId = function() {};
   p.PickerBuilder.prototype.setAuthUser = function() {};
   p.PickerBuilder.prototype.setCallback = function() {};
+  p.PickerBuilder.prototype.setDeveloperKey = function() {};
   p.PickerBuilder.prototype.setDocument = function() {};
   p.PickerBuilder.prototype.setLocale = function() {};
+  p.PickerBuilder.prototype.setOAuthToken = function() {};
   p.PickerBuilder.prototype.setRelayUrl = function() {};
   p.PickerBuilder.prototype.setSelectableMimeTypes = function() {};
   p.PickerBuilder.prototype.setSize = function() {};
@@ -161,6 +164,7 @@
   p.ViewId.DOCS_IMAGES_AND_VIDEOS = 1;
   p.ViewId.DOCS_VIDEOS = 1;
   p.ViewId.DOCUMENTS = 1;
+  p.ViewId.DRAWINGS = 1;
   p.ViewId.FOLDERS = 1;
   p.ViewId.FORMS = 1;
   p.ViewId.IMAGE_SEARCH = 1;
=======================================
--- /trunk/tests/com/google/caja/apitaming/picker/allviews.html Tue Nov 6 18:03:09 2012 UTC +++ /trunk/tests/com/google/caja/apitaming/picker/allviews.html Mon Nov 18 17:18:21 2013 UTC
@@ -5,12 +5,19 @@
       google.load('picker', '1.0');

       function createPicker() {
-        var picker = new google.picker.PickerBuilder()
+        var pickerBuilder = new google.picker.PickerBuilder();
+
+        document.getElementById('msgs').innerHTML = ''
+            + 'setDeveloperKey=' + pickerBuilder.setDeveloperKey + '\n'
+            + 'setOAuthToken=' + pickerBuilder.setOAuthToken;
+
+        var picker = pickerBuilder
               .addView(google.picker.ViewId.DOCS)
               .addView(google.picker.ViewId.DOCS_IMAGES)
               .addView(google.picker.ViewId.DOCS_IMAGES_AND_VIDEOS)
               .addView(google.picker.ViewId.DOCS_VIDEOS)
               .addView(google.picker.ViewId.DOCUMENTS)
+              .addView(google.picker.ViewId.DRAWINGS)
               .addView(google.picker.ViewId.FOLDERS)
               .addView(google.picker.ViewId.FORMS)
               .addView(google.picker.ViewId.IMAGE_SEARCH)

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to