Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_MANAGER_H_ | |
| 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_MANAGER_H_ | |
| 7 | |
| 8 #include <map> | |
| 9 | |
| 10 #include "ui/gfx/native_widget_types.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 | |
| 14 class NativeWindowDelegate; | |
| 15 | |
| 16 class NativeWindowManager { | |
| 17 public: | |
| 18 NativeWindowManager(); | |
| 19 ~NativeWindowManager(); | |
| 20 | |
| 21 gfx::AcceleratedWidget AllocateAcceleratedWidget(); | |
| 22 | |
| 23 void AddNativeWindowDelegate(gfx::AcceleratedWidget widget, | |
| 24 NativeWindowDelegate* surface); | |
| 25 void RemoveNativeWindowDelegate(gfx::AcceleratedWidget widget); | |
| 26 NativeWindowDelegate* GetNativeWindowDelegate(gfx::AcceleratedWidget widget); | |
| 27 bool HasNativeWindowDelegate(gfx::AcceleratedWidget widget); | |
| 28 | |
| 29 private: | |
| 30 std::map<gfx::AcceleratedWidget, NativeWindowDelegate*> delegate_map_; | |
|
alexst (slow to review)
2014/08/18 17:43:47
Please typedef the map to something like WidgetToD
dnicoara
2014/08/18 18:55:24
Done.
| |
| 31 gfx::AcceleratedWidget allocated_widgets_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(NativeWindowManager); | |
| 34 }; | |
| 35 | |
| 36 } // namespace ui | |
| 37 | |
| 38 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_WINDOW_MANAGER_H_ | |
| OLD | NEW |