Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1093)

Unified Diff: chrome/browser/extensions/display_info_provider_mac.cc

Issue 476103002: Make DisplayInfoProvider an interface (Closed) Base URL: git@github.com:tmpsantos/chromium.git@display_info
Patch Set: Addressed review comments. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/display_info_provider_mac.cc
diff --git a/chrome/browser/extensions/display_info_provider_mac.cc b/chrome/browser/extensions/display_info_provider_mac.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ef611073762909b6b7d4338c9326dbd8c9f07793
--- /dev/null
+++ b/chrome/browser/extensions/display_info_provider_mac.cc
@@ -0,0 +1,34 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
James Cook 2014/08/19 21:48:52 Can you try uploading with --similarity=50 (or 30
tmpsantos 2014/08/20 18:58:31 Did it with 30 and apparently it worked (50 is the
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/display_info_provider_mac.h"
+
+namespace extensions {
+
+DisplayInfoProviderMac::DisplayInfoProviderMac() {
+}
+
+DisplayInfoProviderMac::~DisplayInfoProviderMac() {
+}
+
+bool DisplayInfoProviderMac::SetInfo(
+ const std::string& display_id,
+ const api::system_display::DisplayProperties& info,
+ std::string* error) {
+ *error = "Not implemented";
+ return false;
+}
+
+void DisplayInfoProviderMac::UpdateDisplayUnitInfoForPlatform(
+ const gfx::Display& display,
+ extensions::api::system_display::DisplayUnitInfo* unit) {
+ NOTIMPLEMENTED();
+}
+
+// static
+DisplayInfoProvider* DisplayInfoProvider::Create() {
+ return new DisplayInfoProviderMac();
+}
+
+} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698