Reviewers: kpreid_google,

Description:
Add some missing Picker methods to taming

Please review this at https://codereview.appspot.com/28040043/

Affected files (+12, -1 lines):
  M     src/com/google/caja/apitaming/google.picker.policyFactory.js
  M     tests/com/google/caja/apitaming/picker/allviews.html


Index: src/com/google/caja/apitaming/google.picker.policyFactory.js
===================================================================
--- src/com/google/caja/apitaming/google.picker.policyFactory.js (revision 5628) +++ src/com/google/caja/apitaming/google.picker.policyFactory.js (working copy)
@@ -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;
Index: tests/com/google/caja/apitaming/picker/allviews.html
===================================================================
--- tests/com/google/caja/apitaming/picker/allviews.html        (revision 5628)
+++ tests/com/google/caja/apitaming/picker/allviews.html        (working copy)
@@ -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