Reviewers: shindig.remailer, Description: Changes the canonical name of OpenSocial views, in the default container config, to upper-cased versions of themselves. Aliases using lower-cased names are provided.
This makes it possible for an OpenSocial app rendered using Shindig to retrieve (in JS) its current view and meaningfully compare the resulting name (without modification to gadgets.views.ViewType values, all of which are capitalized. Please review this at http://codereview.appspot.com/28128 Affected files: container.js Index: container.js =================================================================== --- container.js (revision 759009) +++ container.js (working copy) @@ -97,15 +97,15 @@ "jsonProxyUrl" : "http://%host%/gadgets/makeRequest" }, "views" : { - "profile" : { + "PROFILE" : { "isOnlyVisible" : false, "urlTemplate" : "http://localhost/gadgets/profile?{var}", - "aliases": ["DASHBOARD", "default"] + "aliases": ["DASHBOARD", "profile", "default"] }, - "canvas" : { + "CANVAS" : { "isOnlyVisible" : true, "urlTemplate" : "http://localhost/gadgets/canvas?{var}", - "aliases" : ["FULL_PAGE"] + "aliases" : ["FULL_PAGE", "canvas"] } }, "rpc" : {

