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

Unified Diff: extensions/browser/api/system_display/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: No ash/ dependency anymore 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: extensions/browser/api/system_display/display_info_provider.h
diff --git a/chrome/browser/extensions/api/system_display/display_info_provider.h b/extensions/browser/api/system_display/display_info_provider.h
similarity index 79%
rename from chrome/browser/extensions/api/system_display/display_info_provider.h
rename to extensions/browser/api/system_display/display_info_provider.h
index 96d198d9d75f1ddf5cb9302c38dc6f8dfb435b74..7dfb88bcc02ec77fe7fcb06a15ee6fc9d1ff7611 100644
--- a/chrome/browser/extensions/api/system_display/display_info_provider.h
+++ b/extensions/browser/api/system_display/display_info_provider.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
-#define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
+#ifndef EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
+#define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
#include <string>
#include <vector>
@@ -18,14 +18,14 @@ class Screen;
namespace extensions {
-namespace api {
+namespace core_api {
namespace system_display {
struct DisplayProperties;
struct DisplayUnitInfo;
}
}
-typedef std::vector<linked_ptr<api::system_display::DisplayUnitInfo> >
+typedef std::vector<linked_ptr<core_api::system_display::DisplayUnitInfo> >
DisplayInfo;
class DisplayInfoProvider {
@@ -44,7 +44,7 @@ class DisplayInfoProvider {
// the display was successfully updated. On failure, no display parameters
// should be changed, and |error| should be set to the error string.
virtual bool SetInfo(const std::string& display_id,
- const api::system_display::DisplayProperties& info,
+ const core_api::system_display::DisplayProperties& info,
std::string* error) = 0;
// Get the screen that is always active, which will be used for monitoring
@@ -63,11 +63,11 @@ class DisplayInfoProvider {
// platform specific method.
virtual void UpdateDisplayUnitInfoForPlatform(
const gfx::Display& display,
- api::system_display::DisplayUnitInfo* unit) = 0;
+ core_api::system_display::DisplayUnitInfo* unit) = 0;
DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider);
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
+#endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698