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

Unified Diff: chrome/browser/extensions/display_info_provider_chromeos.h

Issue 2002773002: Add overscanCalibration methods to system_display.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix non-chromeos + tests Created 4 years, 7 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_chromeos.h
diff --git a/chrome/browser/extensions/display_info_provider_chromeos.h b/chrome/browser/extensions/display_info_provider_chromeos.h
index 5db2116d8ddb3645274e5ee0f20de0b32374283e..142d8da4a571306a68a152d1d410b89793fc6860 100644
--- a/chrome/browser/extensions/display_info_provider_chromeos.h
+++ b/chrome/browser/extensions/display_info_provider_chromeos.h
@@ -5,9 +5,16 @@
#ifndef CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_
#define CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_
+#include <map>
+#include <memory>
+
#include "base/macros.h"
#include "extensions/browser/api/system_display/display_info_provider.h"
+namespace chromeos {
+class OverscanCalibrator;
+}
+
namespace extensions {
class DisplayInfoProviderChromeOS : public DisplayInfoProvider {
@@ -24,8 +31,19 @@ class DisplayInfoProviderChromeOS : public DisplayInfoProvider {
api::system_display::DisplayUnitInfo* unit) override;
void EnableUnifiedDesktop(bool enable) override;
DisplayUnitInfoList GetAllDisplaysInfo() override;
+ bool OverscanCalibrationStart(const std::string& id) override;
+ bool OverscanCalibrationAdjust(
+ const std::string& id,
+ const api::system_display::Insets& delta) override;
+ bool OverscanCalibrationReset(const std::string& id) override;
+ bool OverscanCalibrationComplete(const std::string& id) override;
private:
+ std::map<std::string, std::unique_ptr<chromeos::OverscanCalibrator>>
+ overscan_calibrators_;
+
+ chromeos::OverscanCalibrator* GetCalibrator(const std::string& id);
+
DISALLOW_COPY_AND_ASSIGN(DisplayInfoProviderChromeOS);
};
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.h ('k') | chrome/browser/extensions/display_info_provider_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698