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

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

Issue 10636019: Adding Application Data dialog for isolated apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Properly done JavaScript and CSS. Created 8 years, 5 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 // AppCookiesView 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 AppCookiesView(model) {
16 options.OptionsPage.call(this, 'app-cookies',
17 loadTimeData.getString('cookiesViewPageTabTitle'),
18 'app-cookies-view-page');
19 }
20
21 cr.addSingletonGetter(AppCookiesView);
22
23 AppCookiesView.prototype = {
24 __proto__: options.CookiesView.prototype,
25
26 isAppContext: function() {
27 return true;
28 },
29 };
30
31 // CookiesViewHandler callbacks.
32 AppCookiesView.onTreeItemAdded = function(args) {
33 $('app-cookies-list').addByParentId(args[0], args[1], args[2]);
34 };
35
36 AppCookiesView.onTreeItemRemoved = function(args) {
37 $('app-cookies-list').removeByParentId(args[0], args[1], args[2]);
38 };
39
40 AppCookiesView.loadChildren = function(args) {
41 $('app-cookies-list').loadChildren(args[0], args[1]);
42 };
43
44 // Export
45 return {
46 AppCookiesView: AppCookiesView
47 };
48
49 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698