naiveproxy/chromeos/services/assistant/public/mojom/settings.mojom

22 lines
976 B
Plaintext
Raw Normal View History

2018-12-10 05:59:24 +03:00
// Copyright 2018 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.
module chromeos.assistant.mojom;
interface AssistantSettingsManager {
// |selector| is a serialized proto of SettingsUiSelector, indicating which
// settings sub-pages should be requested to the server.
// |settings| is a serialized proto of SettingsUi, containing the settings
// sub-pages requested.
// Send a request for the settings ui sub-pages indicated by the |selector|.
GetSettings(string selector) => (string settings);
// |update| is a serialized proto of SettingsUiUpdate, indicating what kind
// of updates should be applied to the settings.
// |result| is a serialized proto of SettingsUiUpdateResult, containing the
// result of updates.
// Send a request to update the assistant settings indicated by the |update|.
UpdateSettings(string update) => (string result);
};