Index: chrome/browser/extensions/api/system_info_display/display_info_provider.h |
diff --git a/chrome/browser/extensions/api/system_info_display/display_info_provider.h b/chrome/browser/extensions/api/system_info_display/display_info_provider.h |
index aab10c1cb4ed34e88eb1db52ff232752b713f35f..1024a7efd33a1fd25a98217479e87350e37929ba 100644 |
--- a/chrome/browser/extensions/api/system_info_display/display_info_provider.h |
+++ b/chrome/browser/extensions/api/system_info_display/display_info_provider.h |
@@ -17,6 +17,8 @@ class DisplayInfoProvider : public SystemInfoProvider<DisplayInfo> { |
public: |
typedef base::Callback<void(const DisplayInfo& info, bool success)> |
RequestInfoCallback; |
+ typedef base::Callback<void(bool success, const std::string& error)> |
+ SetInfoCallback; |
// Gets a DisplayInfoProvider instance. |
static DisplayInfoProvider* GetProvider(); |
@@ -27,6 +29,17 @@ class DisplayInfoProvider : public SystemInfoProvider<DisplayInfo> { |
// The implementation is platform specific. |
void RequestInfo(const RequestInfoCallback& callback); |
+ // Updates the display parameters for a display with the provided id. |
+ // The parameters are updated according to content of |info|. After the |
+ // display is updated, callback is called with the success status, and error |
+ // message. If the method succeeds, the error message is empty. |
+ // The callback will be called asynchronously. |
+ // This functionality is exposed only on ChromeOS. |
+ virtual void SetInfo( |
+ const std::string& display_id, |
+ const api::system_info_display::SetDisplayUnitInfoParams& params, |
+ const SetInfoCallback& callback); |
+ |
protected: |
// Overriden from SystemInfoProvider<DisplayInfo>. |
// The implementation is platform specific. |