OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ |
6 #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ | 6 #define UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 private: | 43 private: |
44 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); | 44 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); |
45 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); | 45 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); |
46 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, | 46 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, |
47 const gfx::Rect& bounds); | 47 const gfx::Rect& bounds); |
48 void OnCursorSet(gfx::AcceleratedWidget widget, | 48 void OnCursorSet(gfx::AcceleratedWidget widget, |
49 const SkBitmap& bitmap, | 49 const SkBitmap& bitmap, |
50 const gfx::Point& location); | 50 const gfx::Point& location); |
51 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location); | 51 void OnCursorMove(gfx::AcceleratedWidget widget, const gfx::Point& location); |
52 | 52 |
53 typedef base::ScopedPtrHashMap<gfx::AcceleratedWidget, DriWindowDelegate> | |
54 WidgetToWindowDelegateMap; | |
55 | |
56 IPC::Sender* sender_; | 53 IPC::Sender* sender_; |
57 DriSurfaceFactory* dri_; | 54 DriSurfaceFactory* dri_; |
58 DriWindowManager* window_manager_; | 55 DriWindowManager* window_manager_; |
59 ScreenManager* screen_manager_; | 56 ScreenManager* screen_manager_; |
60 ScopedVector<GpuPlatformSupport> handlers_; | 57 ScopedVector<GpuPlatformSupport> handlers_; |
61 WidgetToWindowDelegateMap window_delegate_owner_; | |
62 }; | 58 }; |
63 | 59 |
64 } // namespace ui | 60 } // namespace ui |
65 | 61 |
66 #endif // UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ | 62 #endif // UI_OZONE_PLATFORM_DRI_GPU_PLATFORM_SUPPORT_GBM_H_ |
OLD | NEW |