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

Side by Side Diff: chrome/browser/resources/options2/cookies_view_app.js

Issue 10809005: Options: Rename chrome/browser/resources/options2 -> chrome/browser/resources/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('options', function() {
6
7 /////////////////////////////////////////////////////////////////////////////
8 // CookiesViewApp class:
9
10 /**
11 * Encapsulated handling of app cookies and other data page. It
12 * derives from the regular CookiesView.
13 * @constructor
14 */
15 function CookiesViewApp(model) {
16 options.OptionsPage.call(this, 'app-cookies',
17 loadTimeData.getString('cookiesViewPageTabTitle'),
18 'app-cookies-view-page');
19 }
20
21 cr.addSingletonGetter(CookiesViewApp);
22
23 CookiesViewApp.prototype = {
24 __proto__: options.CookiesView.prototype,
25
26 isAppContext: function() {
27 return true;
28 },
29 };
30
31 // CookiesViewHandler callbacks.
32 CookiesViewApp.onTreeItemAdded = function(args) {
33 $('app-cookies-list').addByParentId(args[0], args[1], args[2]);
34 };
35
36 CookiesViewApp.onTreeItemRemoved = function(args) {
37 $('app-cookies-list').removeByParentId(args[0], args[1], args[2]);
38 };
39
40 CookiesViewApp.loadChildren = function(args) {
41 $('app-cookies-list').loadChildren(args[0], args[1]);
42 };
43
44 // Export
45 return {
46 CookiesViewApp: CookiesViewApp
47 };
48 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/cookies_view_app.html ('k') | chrome/browser/resources/options2/deletable_item_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698