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_DRI_GPU_PLATFORM_SUPPORT_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 6 #define UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_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 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 DriGpuPlatformSupport(DriSurfaceFactory* dri, | 34 DriGpuPlatformSupport(DriSurfaceFactory* dri, |
35 DriWindowDelegateManager* window_manager, | 35 DriWindowDelegateManager* window_manager, |
36 ScreenManager* screen_manager, | 36 ScreenManager* screen_manager, |
37 scoped_ptr<NativeDisplayDelegateDri> ndd); | 37 scoped_ptr<NativeDisplayDelegateDri> ndd); |
38 virtual ~DriGpuPlatformSupport(); | 38 virtual ~DriGpuPlatformSupport(); |
39 | 39 |
40 void AddHandler(scoped_ptr<GpuPlatformSupport> handler); | 40 void AddHandler(scoped_ptr<GpuPlatformSupport> handler); |
41 | 41 |
42 // GpuPlatformSupport: | 42 // GpuPlatformSupport: |
43 virtual void OnChannelEstablished(IPC::Sender* sender) OVERRIDE; | 43 virtual void OnChannelEstablished(IPC::Sender* sender) override; |
44 | 44 |
45 // IPC::Listener: | 45 // IPC::Listener: |
46 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 46 virtual bool OnMessageReceived(const IPC::Message& message) override; |
47 | 47 |
48 private: | 48 private: |
49 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); | 49 void OnCreateWindowDelegate(gfx::AcceleratedWidget widget); |
50 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); | 50 void OnDestroyWindowDelegate(gfx::AcceleratedWidget widget); |
51 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, | 51 void OnWindowBoundsChanged(gfx::AcceleratedWidget widget, |
52 const gfx::Rect& bounds); | 52 const gfx::Rect& bounds); |
53 void OnCursorSet(gfx::AcceleratedWidget widget, | 53 void OnCursorSet(gfx::AcceleratedWidget widget, |
54 const std::vector<SkBitmap>& bitmaps, | 54 const std::vector<SkBitmap>& bitmaps, |
55 const gfx::Point& location, | 55 const gfx::Point& location, |
56 int frame_delay_ms); | 56 int frame_delay_ms); |
(...skipping 13 matching lines...) Expand all Loading... |
70 DriWindowDelegateManager* window_manager_; // Not owned. | 70 DriWindowDelegateManager* window_manager_; // Not owned. |
71 ScreenManager* screen_manager_; // Not owned. | 71 ScreenManager* screen_manager_; // Not owned. |
72 | 72 |
73 scoped_ptr<NativeDisplayDelegateDri> ndd_; | 73 scoped_ptr<NativeDisplayDelegateDri> ndd_; |
74 ScopedVector<GpuPlatformSupport> handlers_; | 74 ScopedVector<GpuPlatformSupport> handlers_; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace ui | 77 } // namespace ui |
78 | 78 |
79 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ | 79 #endif // UI_OZONE_PLATFORM_DRI_DRI_GPU_PLATFORM_SUPPORT_H_ |
OLD | NEW |