Commit 113eb1c4 authored by dpapad's avatar dpapad Committed by Commit bot

chrome://plugins Mojo-ification part 1/2, adding interface.

BUG=570143

Review URL: https://codereview.chromium.org/1524423002

Cr-Commit-Position: refs/heads/master@{#371438}
parent b1a42b49
...@@ -98,6 +98,7 @@ source_set("ui") { ...@@ -98,6 +98,7 @@ source_set("ui") {
"//chrome/browser/ui/views", "//chrome/browser/ui/views",
"//chrome/browser/ui/webui/engagement:mojo_bindings", "//chrome/browser/ui/webui/engagement:mojo_bindings",
"//chrome/browser/ui/webui/omnibox:mojo_bindings", "//chrome/browser/ui/webui/omnibox:mojo_bindings",
"//chrome/browser/ui/webui/plugins:mojo_bindings",
"//chrome/common/net", "//chrome/common/net",
"//chrome/installer/util:with_no_strings", "//chrome/installer/util:with_no_strings",
"//components/autofill/content/browser:risk_proto", "//components/autofill/content/browser:risk_proto",
......
# Copyright 2016 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.
import("//mojo/public/tools/bindings/mojom.gni")
# GYP version: chrome/chrome_web_ui_mojo_bindings.gyp:webui_mojo_bindings
mojom("mojo_bindings") {
sources = [
"plugins.mojom",
]
}
// Copyright 2016 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.
struct MimeType {
string description;
array<string> file_extensions;
string mime_type;
};
struct PluginFile {
string description;
string enabled_mode;
array<MimeType> mime_types;
string name;
string path;
string type;
string version;
};
struct PluginData {
bool always_allowed;
string description;
bool critical;
string enabled_mode;
string id;
string name;
string update_url;
string version;
array<PluginFile> plugin_files;
};
interface PluginsHandlerMojo {
GetPluginsData() => (array<PluginData> plugins);
GetShowDetails() => (bool show_details);
SaveShowDetailsToPrefs(bool details_mode);
SetPluginAlwaysAllowed(string plugin, bool allowed);
SetPluginEnabled(string plugin_path, bool enable);
SetPluginGroupEnabled(string group_name, bool enable);
SetClientPage(PluginsPageMojo page);
};
interface PluginsPageMojo {
OnPluginsUpdated(array<PluginData> plugins);
};
...@@ -2903,6 +2903,7 @@ ...@@ -2903,6 +2903,7 @@
'<@(chrome_browser_ui_toolbar_model_sources)', '<@(chrome_browser_ui_toolbar_model_sources)',
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/engagement/site_engagement.mojom.cc', '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/engagement/site_engagement.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/omnibox/omnibox.mojom.cc', '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/omnibox/omnibox.mojom.cc',
'<(SHARED_INTERMEDIATE_DIR)/chrome/browser/ui/webui/plugins/plugins.mojom.cc',
], ],
'dependencies': [ 'dependencies': [
'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings', 'chrome_web_ui_mojo_bindings.gyp:web_ui_mojo_bindings',
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
'browser/ui/webui/engagement/site_engagement.mojom', 'browser/ui/webui/engagement/site_engagement.mojom',
# GN version: //chrome/browser/ui/webui/omnibox:mojo_bindings # GN version: //chrome/browser/ui/webui/omnibox:mojo_bindings
'browser/ui/webui/omnibox/omnibox.mojom', 'browser/ui/webui/omnibox/omnibox.mojom',
# GN version: //chrome/browser/ui/webui/plugins:mojo_bindings
'browser/ui/webui/plugins/plugins.mojom',
], ],
'includes': [ '../third_party/mojo/mojom_bindings_generator.gypi' ], 'includes': [ '../third_party/mojo/mojom_bindings_generator.gypi' ],
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment