blob: 8d8fa5a31c4df7049e9ec15fac842580525b0333 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/display/chromeos/display_configurator.h"
#include "ui/display/chromeos/touchscreen_delegate_impl.h"
#include "ui/display/chromeos/x11/native_display_delegate_x11.h"
#include "ui/display/chromeos/x11/touchscreen_device_manager_x11.h"
namespace ui {
scoped_ptr<NativeDisplayDelegate>
DisplayConfigurator::CreatePlatformNativeDisplayDelegate() {
return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateX11());
}
scoped_ptr<DisplayConfigurator::TouchscreenDelegate>
DisplayConfigurator::CreatePlatformTouchscreenDelegate() {
return scoped_ptr<TouchscreenDelegate>(new TouchscreenDelegateImpl(
scoped_ptr<TouchscreenDeviceManager>(
new TouchscreenDeviceManagerX11())));
}
} // namespace ui