This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhuyujia-webhopper/collector/adg-linux/gen/extensions/common/api/power.h
little_stone bd2d50cf35 code update
2022-05-05 20:41:28 +08:00

71 lines
1.2 KiB
C++
Executable File

// Copyright (c) 2019 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.
// GENERATED FROM THE API DEFINITION IN
// extensions/common/api/power.idl
// DO NOT EDIT.
#ifndef EXTENSIONS_COMMON_API_POWER_H__
#define EXTENSIONS_COMMON_API_POWER_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "base/logging.h"
#include "base/values.h"
namespace extensions {
namespace api {
namespace power {
//
// Types
//
enum Level {
LEVEL_NONE,
LEVEL_SYSTEM,
LEVEL_DISPLAY,
LEVEL_LAST = LEVEL_DISPLAY,
};
const char* ToString(Level as_enum);
Level ParseLevel(const std::string& as_string);
//
// Functions
//
namespace RequestKeepAwake {
struct Params {
static std::unique_ptr<Params> Create(const base::ListValue& args);
~Params();
Level level;
private:
Params();
DISALLOW_COPY_AND_ASSIGN(Params);
};
} // namespace RequestKeepAwake
namespace ReleaseKeepAwake {
} // namespace ReleaseKeepAwake
} // namespace power
} // namespace api
} // namespace extensions
#endif // EXTENSIONS_COMMON_API_POWER_H__