| 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 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "ui/base/win/dpi.h" | 10 #include "ui/base/win/dpi.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 void DisplayInfoProvider::SetInfo( | 75 void DisplayInfoProvider::SetInfo( |
| 76 const std::string& display_id, | 76 const std::string& display_id, |
| 77 const api::system_info_display::DisplayProperties& info, | 77 const api::system_info_display::DisplayProperties& info, |
| 78 const SetInfoCallback& callback) { | 78 const SetInfoCallback& callback) { |
| 79 base::MessageLoopProxy::current()->PostTask( | 79 base::MessageLoopProxy::current()->PostTask( |
| 80 FROM_HERE, | 80 FROM_HERE, |
| 81 base::Bind(callback, false, "Not implemented")); | 81 base::Bind(callback, false, "Not implemented")); |
| 82 } | 82 } |
| 83 | 83 |
| 84 bool DisplayInfoProvider::QueryInfo(DisplayInfo* info) { | 84 bool DisplayInfoProvider::QueryInfo() { |
| 85 DCHECK(info); | 85 info_.clear(); |
| 86 info->clear(); | |
| 87 | 86 |
| 88 if (EnumDisplayMonitors(NULL, NULL, EnumMonitorCallback, | 87 if (EnumDisplayMonitors(NULL, NULL, EnumMonitorCallback, |
| 89 reinterpret_cast<LPARAM>(info))) | 88 reinterpret_cast<LPARAM>(&info_))) |
| 90 return true; | 89 return true; |
| 91 return false; | 90 return false; |
| 92 } | 91 } |
| 93 | 92 |
| 94 } // namespace extensions | 93 } // namespace extensions |
| OLD | NEW |