 Chromium Code Reviews
 Chromium Code Reviews Issue 20804002:
  Added the next series of files that go into media-internals.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 20804002:
  Added the next series of files that go into media-internals.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| Index: content/browser/resources/media/new/goog.js | 
| diff --git a/content/browser/resources/media/new/goog.js b/content/browser/resources/media/new/goog.js | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..6137eff22460d28edbfaa7a3c1167d761c58aaac | 
| --- /dev/null | 
| +++ b/content/browser/resources/media/new/goog.js | 
| @@ -0,0 +1,36 @@ | 
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| + | 
| +/** | 
| + * @fileoverview A placeholder for google closure library functions. | 
| 
scherkus (not reviewing)
2013/07/29 20:35:54
what are the plans for this placeholder w.r.t. goo
 
Ty Overby
2013/07/29 21:53:31
It's basically impossible to use the google closur
 | 
| + */ | 
| + | 
| +var goog = {}; | 
| +goog.object = {}; | 
| +goog.object.forEach = function(obj, f, optObj) { | 
| + 'use strict'; | 
| + var key; | 
| + for (key in obj) { | 
| + if (obj.hasOwnProperty(key)) { | 
| + f.call(optObj, obj[key], key, obj); | 
| + } | 
| + } | 
| +}; | 
| + | 
| +goog.time = {}; | 
| +goog.time.millisToString = function(timeMillis) { | 
| + 'use strict'; | 
| + function pad(num) { | 
| + num = num.toString(); | 
| + if (num.length < 2) { | 
| + return '0' + num; | 
| + } | 
| + return num; | 
| + } | 
| + | 
| + var date = new Date(timeMillis); | 
| + return pad(date.getUTCHours()) + ':' + pad(date.getUTCMinutes()) + ':' + | 
| + pad(date.getUTCSeconds()) + ' ' + pad((date.getMilliseconds()) % 1000); | 
| +}; |