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_CACA_CACA_WINDOW_MANAGER_H_ | 5 #ifndef UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ | 6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
7 | 7 |
8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/ozone/public/surface_factory_ozone.h" | 10 #include "ui/ozone/public/surface_factory_ozone.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 CacaWindowManager(); | 22 CacaWindowManager(); |
23 virtual ~CacaWindowManager(); | 23 virtual ~CacaWindowManager(); |
24 | 24 |
25 // Register a new libcaca window/instance. Returns the window id. | 25 // Register a new libcaca window/instance. Returns the window id. |
26 int32_t AddWindow(CacaWindow* window); | 26 int32_t AddWindow(CacaWindow* window); |
27 | 27 |
28 // Remove a libcaca window/instance. | 28 // Remove a libcaca window/instance. |
29 void RemoveWindow(int32_t window_id, CacaWindow* window); | 29 void RemoveWindow(int32_t window_id, CacaWindow* window); |
30 | 30 |
31 // ui::SurfaceFactoryOzone overrides: | 31 // ui::SurfaceFactoryOzone overrides: |
32 virtual HardwareState InitializeHardware() OVERRIDE; | |
33 virtual void ShutdownHardware() OVERRIDE; | |
34 virtual bool LoadEGLGLES2Bindings( | 32 virtual bool LoadEGLGLES2Bindings( |
35 AddGLLibraryCallback add_gl_library, | 33 AddGLLibraryCallback add_gl_library, |
36 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; | 34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; |
37 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( | 35 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget( |
38 gfx::AcceleratedWidget widget) OVERRIDE; | 36 gfx::AcceleratedWidget widget) OVERRIDE; |
39 | 37 |
40 private: | 38 private: |
41 IDMap<CacaWindow> windows_; | 39 IDMap<CacaWindow> windows_; |
42 | 40 |
43 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); | 41 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager); |
44 }; | 42 }; |
45 | 43 |
46 } // namespace ui | 44 } // namespace ui |
47 | 45 |
48 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ | 46 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_ |
OLD | NEW |