• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/extensions/display_info_provider_mac.h"
6 
7 #include "ui/gfx/screen.h"
8 
9 namespace extensions {
10 
DisplayInfoProviderMac()11 DisplayInfoProviderMac::DisplayInfoProviderMac() {
12 }
13 
~DisplayInfoProviderMac()14 DisplayInfoProviderMac::~DisplayInfoProviderMac() {
15 }
16 
SetInfo(const std::string & display_id,const core_api::system_display::DisplayProperties & info,std::string * error)17 bool DisplayInfoProviderMac::SetInfo(
18     const std::string& display_id,
19     const core_api::system_display::DisplayProperties& info,
20     std::string* error) {
21   *error = "Not implemented";
22   return false;
23 }
24 
UpdateDisplayUnitInfoForPlatform(const gfx::Display & display,extensions::core_api::system_display::DisplayUnitInfo * unit)25 void DisplayInfoProviderMac::UpdateDisplayUnitInfoForPlatform(
26     const gfx::Display& display,
27     extensions::core_api::system_display::DisplayUnitInfo* unit) {
28   NOTIMPLEMENTED();
29 }
30 
GetActiveScreen()31 gfx::Screen* DisplayInfoProviderMac::GetActiveScreen() {
32   return gfx::Screen::GetNativeScreen();
33 }
34 
35 // static
Create()36 DisplayInfoProvider* DisplayInfoProvider::Create() {
37   return new DisplayInfoProviderMac();
38 }
39 
40 }  // namespace extensions
41