Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / extensions / display_info_provider_mac.cc
blobc49c3f1b8bba34c3eea690689f90455d94c9a0bd
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.
5 #include "chrome/browser/extensions/display_info_provider_mac.h"
7 #include "ui/gfx/screen.h"
9 namespace extensions {
11 DisplayInfoProviderMac::DisplayInfoProviderMac() {
14 DisplayInfoProviderMac::~DisplayInfoProviderMac() {
17 bool DisplayInfoProviderMac::SetInfo(
18 const std::string& display_id,
19 const api::system_display::DisplayProperties& info,
20 std::string* error) {
21 *error = "Not implemented";
22 return false;
25 void DisplayInfoProviderMac::UpdateDisplayUnitInfoForPlatform(
26 const gfx::Display& display,
27 extensions::api::system_display::DisplayUnitInfo* unit) {
28 static bool logged_once = false;
29 if (!logged_once) {
30 NOTIMPLEMENTED();
31 logged_once = true;
35 gfx::Screen* DisplayInfoProviderMac::GetActiveScreen() {
36 return gfx::Screen::GetNativeScreen();
39 // static
40 DisplayInfoProvider* DisplayInfoProvider::Create() {
41 return new DisplayInfoProviderMac();
44 } // namespace extensions