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