103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
203b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// found in the LICENSE file.
403b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
503b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)#include "chrome/browser/extensions/display_info_provider_mac.h"
603b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
71320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci#include "ui/gfx/screen.h"
81320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
903b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)namespace extensions {
1003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
1103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)DisplayInfoProviderMac::DisplayInfoProviderMac() {
1203b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)}
1303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
1403b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)DisplayInfoProviderMac::~DisplayInfoProviderMac() {
1503b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)}
1603b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
1703b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)bool DisplayInfoProviderMac::SetInfo(
1803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)    const std::string& display_id,
191320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    const core_api::system_display::DisplayProperties& info,
2003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)    std::string* error) {
2103b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)  *error = "Not implemented";
2203b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)  return false;
2303b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)}
2403b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
2503b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)void DisplayInfoProviderMac::UpdateDisplayUnitInfoForPlatform(
2603b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)    const gfx::Display& display,
271320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci    extensions::core_api::system_display::DisplayUnitInfo* unit) {
2803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)  NOTIMPLEMENTED();
2903b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)}
3003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
311320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccigfx::Screen* DisplayInfoProviderMac::GetActiveScreen() {
321320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  return gfx::Screen::GetNativeScreen();
331320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci}
341320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci
3503b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)// static
3603b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)DisplayInfoProvider* DisplayInfoProvider::Create() {
3703b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)  return new DisplayInfoProviderMac();
3803b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)}
3903b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)
4003b57e008b61dfcb1fbad3aea950ae0e001748b0Torne (Richard Coles)}  // namespace extensions
41