| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/extensions/api/system_info_display/display_info_provide
r.h" | 5 #include "chrome/browser/extensions/api/system_info_display/display_info_provide
r.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 void DisplayInfoProvider::RequestInfo(const RequestInfoCallback& callback) { | 9 void DisplayInfoProvider::RequestInfo(const RequestInfoCallback& callback) { |
| 10 // Redirect the request to a worker pool thread. | 10 // Redirect the request to a worker pool thread. |
| 11 StartQueryInfo(callback); | 11 StartQueryInfo(callback); |
| 12 } | 12 } |
| 13 | 13 |
| 14 void DisplayInfoProvider::SetInfo( | 14 void DisplayInfoProvider::SetInfo( |
| 15 const std::string& display_id, | 15 const std::string& display_id, |
| 16 const api::system_info_display::DisplayProperties& info, | 16 const api::system_info_display::DisplayProperties& info, |
| 17 const SetInfoCallback& callback) { | 17 const SetInfoCallback& callback) { |
| 18 base::MessageLoopProxy::current()->PostTask( | 18 base::MessageLoopProxy::current()->PostTask( |
| 19 FROM_HERE, | 19 FROM_HERE, |
| 20 base::Bind(callback, false, "Not implemented")); | 20 base::Bind(callback, false, "Not implemented")); |
| 21 } | 21 } |
| 22 | 22 |
| 23 // TODO(hongbo): implement display info querying on Mac OS X. | 23 // TODO(hongbo): implement display info querying on Mac OS X. |
| 24 bool DisplayInfoProvider::QueryInfo(DisplayInfo* info) { | 24 bool DisplayInfoProvider::QueryInfo() { |
| 25 return false; | 25 return false; |
| 26 } | 26 } |
| 27 | 27 |
| 28 } // namespace extensions | 28 } // namespace extensions |
| OLD | NEW |