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

Unified Diff: chrome/browser/extensions/api/system_display/display_info_provider_gtk.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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/api/system_display/display_info_provider_gtk.cc
diff --git a/chrome/browser/extensions/api/system_display/display_info_provider_gtk.cc b/chrome/browser/extensions/api/system_display/display_info_provider_gtk.cc
deleted file mode 100644
index 216f76c04284c56186430e68e2dea77e3461bafb..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/system_display/display_info_provider_gtk.cc
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2013 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.
-
-#include "chrome/browser/extensions/api/system_display/display_info_provider.h"
-
-#include <gdk/gdk.h>
-
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
-
-namespace extensions {
-
-bool DisplayInfoProvider::SetInfo(const std::string& display_id,
- const api::system_display::DisplayProperties& info,
- std::string* error) {
- *error = "Not Implemented";
- return false;
-}
-
-void DisplayInfoProvider::UpdateDisplayUnitInfoForPlatform(
- const gfx::Display& display,
- extensions::api::system_display::DisplayUnitInfo* unit) {
- // TODO(Haojian): determine the DPI of the display
- GdkScreen* screen = gdk_screen_get_default();
- // The |id| in Display for GTK is the monitor index.
- gint monitor_num = static_cast<gint>(display.id());
- char* monitor_name = reinterpret_cast<char*>(gdk_screen_get_monitor_plug_name(
- screen, monitor_num));
- if (monitor_name)
- unit->name = std::string(monitor_name);
-}
-
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698