display_info_provider_x11.cc revision ca12bfac764ba476d6cd062bf1dde12cc64c3f40
1ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Copyright 2013 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch#include "chrome/browser/extensions/api/system_display/display_info_provider.h" 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace extensions { 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 97d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)void DisplayInfoProvider::RequestInfo(const RequestInfoCallback& callback) { 107d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) // Redirect the request to a worker pool thread. 117d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) StartQueryInfo(callback); 127d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)} 137d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) 147d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)void DisplayInfoProvider::SetInfo( 157d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) const std::string& display_id, 16ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch const api::system_display::DisplayProperties& info, 177d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) const SetInfoCallback& callback) { 187d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) base::MessageLoopProxy::current()->PostTask( 197d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) FROM_HERE, 207d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) base::Bind(callback, false, "Not implemented")); 217d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)} 227d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles) 232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// TODO(hongbo): implement X11 display info querying. 247dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochbool DisplayInfoProvider::QueryInfo() { 252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) return false; 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} // namespace extensions 29