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

Side by Side Diff: chrome/browser/ui/webui/plugins/plugins.mojom

Issue 1576183003: chrome://plugins Mojo-ification part 2/2, populating the page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plugins_mojo1
Patch Set: More work Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 struct MimeType { 5 struct MimeType {
6 string description; 6 string description;
7 array<string> file_extensions; 7 array<string> fileExtensions;
8 string mime_type; 8 string mime_type;
9 }; 9 };
10 10
11 struct PluginFile { 11 struct PluginFile {
12 string description; 12 string description;
13 string enabled_mode; 13 string enabled_mode;
14 array<MimeType> mime_types; 14 array<MimeType> mime_types;
15 string name; 15 string name;
16 string path; 16 string path;
17 string type; 17 string type;
18 string version; 18 string version;
19 }; 19 };
20 20
21 struct PluginData { 21 struct PluginData {
22 bool always_allowed; 22 bool always_allowed;
23 string description; 23 string description;
24 string enabled_mode; 24 string enabled_mode;
25 string id; 25 string id;
26 string name; 26 string name;
27 string version; 27 string version;
28 array<PluginFile> plugin_files; 28 array<PluginFile> plugin_files;
sky 2016/01/20 19:23:08 Arrays and other non-POD types support null. When
29 }; 29 };
30 30
31 interface PluginsHandlerMojo { 31 interface PluginsHandlerMojo {
32 GetPluginsData() => (array<PluginData> plugins_data); 32 GetPluginsData() => (array<PluginData> plugins);
33 GetShowDetails() => (bool show_details); 33 GetShowDetails() => (bool show_details);
34 SaveShowDetailsToPrefs(bool details_mode); 34 SaveShowDetailsToPrefs(bool details_mode);
35 SetPluginAlwaysAllowed(string plugin, bool allowed); 35 SetPluginAlwaysAllowed(string plugin, bool allowed);
36 SetPluginEnabled(string plugin_path, bool enable); 36 SetPluginEnabled(string plugin_path, bool enable);
37 SetPluginGroupEnabled(string group_name, bool enable); 37 SetPluginGroupEnabled(string group_name, bool enable);
38 }; 38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698