| Index: ui/ozone/platform/dri/dri_window_delegate_impl.cc
|
| diff --git a/ui/ozone/platform/dri/dri_window_delegate_impl.cc b/ui/ozone/platform/dri/dri_window_delegate_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cb5b7a17e14597328b13535cdc34164543574e0b
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/dri/dri_window_delegate_impl.cc
|
| @@ -0,0 +1,37 @@
|
| +// 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/ozone/platform/dri/dri_window_delegate_impl.h"
|
| +
|
| +#include "ui/ozone/platform/dri/screen_manager.h"
|
| +
|
| +namespace ui {
|
| +
|
| +DriWindowDelegateImpl::DriWindowDelegateImpl(gfx::AcceleratedWidget widget,
|
| + ScreenManager* screen_manager)
|
| + : widget_(widget), screen_manager_(screen_manager) {
|
| +}
|
| +
|
| +DriWindowDelegateImpl::~DriWindowDelegateImpl() {
|
| +}
|
| +
|
| +void DriWindowDelegateImpl::Initialize() {
|
| +}
|
| +
|
| +void DriWindowDelegateImpl::Shutdown() {
|
| +}
|
| +
|
| +gfx::AcceleratedWidget DriWindowDelegateImpl::GetAcceleratedWidget() {
|
| + return widget_;
|
| +}
|
| +
|
| +HardwareDisplayController* DriWindowDelegateImpl::GetController() {
|
| + return controller_.get();
|
| +}
|
| +
|
| +void DriWindowDelegateImpl::OnBoundsChanged(const gfx::Rect& bounds) {
|
| + controller_ = screen_manager_->GetDisplayController(bounds);
|
| +}
|
| +
|
| +} // namespace ui
|
|
|