// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_API_H_
#define EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_API_H_
#include "extensions/browser/extension_function.h"
#include "extensions/common/api/virtual_keyboard.h"
namespace extensions {
class VirtualKeyboardRestrictFeaturesFunction : public ExtensionFunction {
public:
VirtualKeyboardRestrictFeaturesFunction() = default;
VirtualKeyboardRestrictFeaturesFunction(
const VirtualKeyboardRestrictFeaturesFunction&) = delete;
VirtualKeyboardRestrictFeaturesFunction& operator=(
const VirtualKeyboardRestrictFeaturesFunction&) = delete;
DECLARE_EXTENSION_FUNCTION("virtualKeyboard.restrictFeatures",
VIRTUALKEYBOARD_RESTRICTFEATURES)
protected:
~VirtualKeyboardRestrictFeaturesFunction() override = default;
// ExtensionFunction override:
ResponseAction Run() override;
private:
void OnRestrictFeatures(api::virtual_keyboard::FeatureRestrictions update);
};
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_API_H_