blob: a68bcd50a9f3c174cb4d84a9a0fe18a408b8a621 [file] [log] [blame]
// Copyright 2014 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.
#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_
#define EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_
#include "extensions/browser/api/system_display/display_info_provider.h"
namespace extensions {
class ShellDisplayInfoProvider : public DisplayInfoProvider {
public:
ShellDisplayInfoProvider();
virtual ~ShellDisplayInfoProvider();
// DisplayInfoProvider implementation.
virtual bool SetInfo(const std::string& display_id,
const core_api::system_display::DisplayProperties& info,
std::string* error) override;
virtual void UpdateDisplayUnitInfoForPlatform(
const gfx::Display& display,
extensions::core_api::system_display::DisplayUnitInfo* unit) override;
virtual gfx::Screen* GetActiveScreen() override;
private:
DISALLOW_COPY_AND_ASSIGN(ShellDisplayInfoProvider);
};
} // namespace extensions
#endif // EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_