Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / ui / ozone / platform / dri / dri_window_delegate_impl.h
blob1e910ed9642b1b04b08851e2829806d2aaebdaf5
1 // Copyright 2014 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.
5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_
8 #include "base/memory/weak_ptr.h"
9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/ozone/platform/dri/dri_window_delegate.h"
12 namespace gfx {
13 class Rect;
14 } // namespace gfx
16 namespace ui {
18 class HardwareDisplayController;
19 class ScreenManager;
21 class DriWindowDelegateImpl : public DriWindowDelegate {
22 public:
23 DriWindowDelegateImpl(gfx::AcceleratedWidget widget,
24 ScreenManager* screen_manager);
25 ~DriWindowDelegateImpl() override;
27 // DriWindowDelegate:
28 void Initialize() override;
29 void Shutdown() override;
30 gfx::AcceleratedWidget GetAcceleratedWidget() override;
31 HardwareDisplayController* GetController() override;
32 void OnBoundsChanged(const gfx::Rect& bounds) override;
34 private:
35 gfx::AcceleratedWidget widget_;
37 ScreenManager* screen_manager_; // Not owned.
39 base::WeakPtr<HardwareDisplayController> controller_;
41 DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateImpl);
44 } // namespace ui
46 #endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_IMPL_H_