Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/serializer.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview A global serializer object which returns the current 6 * @fileoverview A global serializer object which returns the current
7 * ChromeVox system state. 7 * ChromeVox system state.
8 */ 8 */
9 9
10 goog.provide('cvox.Serializer'); 10 goog.provide('cvox.Serializer');
11 11
12 goog.require('cvox.ChromeVox'); 12 goog.require('cvox.ChromeVox');
13 goog.require('cvox.ChromeVoxEventWatcher'); 13 goog.require('cvox.ChromeVoxEventWatcher');
14 14
15 /** 15 /**
16 * @constructor 16 * @constructor
17 */ 17 */
18 cvox.Serializer = function() { }; 18 cvox.Serializer = function() {};
19 19
20 /** 20 /**
21 * Stores state variables in a provided object. 21 * Stores state variables in a provided object.
22 * 22 *
23 * @param {Object} store The object. 23 * @param {Object} store The object.
24 */ 24 */
25 cvox.Serializer.prototype.storeOn = function(store) { 25 cvox.Serializer.prototype.storeOn = function(store) {
26 cvox.ChromeVox.storeOn(store); 26 cvox.ChromeVox.storeOn(store);
27 cvox.ChromeVoxEventWatcher.storeOn(store); 27 cvox.ChromeVoxEventWatcher.storeOn(store);
28 cvox.ChromeVox.navigationManager.storeOn(store); 28 cvox.ChromeVox.navigationManager.storeOn(store);
29 }; 29 };
30 30
31 /** 31 /**
32 * Updates the object with state variables from an earlier storeOn call. 32 * Updates the object with state variables from an earlier storeOn call.
33 * 33 *
34 * @param {Object} store The object. 34 * @param {Object} store The object.
35 */ 35 */
36 cvox.Serializer.prototype.readFrom = function(store) { 36 cvox.Serializer.prototype.readFrom = function(store) {
37 cvox.ChromeVox.readFrom(store); 37 cvox.ChromeVox.readFrom(store);
38 cvox.ChromeVoxEventWatcher.readFrom(store); 38 cvox.ChromeVoxEventWatcher.readFrom(store);
39 cvox.ChromeVox.navigationManager.readFrom(store); 39 cvox.ChromeVox.navigationManager.readFrom(store);
40 }; 40 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698