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

Unified Diff: extensions/shell/browser/shell_display_info_provider.h

Issue 389633002: Move system.* family of APIs to extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years, 3 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: extensions/shell/browser/shell_display_info_provider.h
diff --git a/extensions/shell/browser/shell_display_info_provider.h b/extensions/shell/browser/shell_display_info_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..5b041d993fa0cac82bde2dc583bb1013cb218c19
--- /dev/null
+++ b/extensions/shell/browser/shell_display_info_provider.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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.
+
+#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_
+#define EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_
+
+#include "extensions/browser/api/system_display/display_info_provider.h"
+
+namespace extensions {
+
+class ShellDisplayInfoProvider : public DisplayInfoProvider {
+ public:
+ ShellDisplayInfoProvider();
+ virtual ~ShellDisplayInfoProvider();
+
+ // DisplayInfoProvider implementation.
+ virtual bool SetInfo(const std::string& display_id,
+ const core_api::system_display::DisplayProperties& info,
+ std::string* error) OVERRIDE;
+ virtual void UpdateDisplayUnitInfoForPlatform(
+ const gfx::Display& display,
+ extensions::core_api::system_display::DisplayUnitInfo* unit) OVERRIDE;
+ virtual gfx::Screen* GetActiveScreen() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellDisplayInfoProvider);
+};
+
+} // namespace extensions
+
+#endif // EXTENSIONS_SHELL_BROWSER_SHELL_DISPLAY_INFO_PROVIDER_H_
« no previous file with comments | « extensions/shell/browser/shell_browser_main_parts.cc ('k') | extensions/shell/browser/shell_display_info_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698