Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: ui/ozone/platform/caca/caca_window_manager.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/caca/caca_window.cc ('k') | ui/ozone/platform/caca/caca_window_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_CACA_CACA_WINDOW_MANAGER_H_
6 #define UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_
7
8 #include "base/id_map.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "ui/ozone/public/surface_factory_ozone.h"
11
12 namespace gfx {
13 class Rect;
14 }
15
16 namespace ui {
17
18 class CacaWindow;
19
20 class CacaWindowManager : public SurfaceFactoryOzone {
21 public:
22 CacaWindowManager();
23 virtual ~CacaWindowManager();
24
25 // Register a new libcaca window/instance. Returns the window id.
26 int32_t AddWindow(CacaWindow* window);
27
28 // Remove a libcaca window/instance.
29 void RemoveWindow(int32_t window_id, CacaWindow* window);
30
31 // ui::SurfaceFactoryOzone overrides:
32 virtual bool LoadEGLGLES2Bindings(
33 AddGLLibraryCallback add_gl_library,
34 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
35 virtual scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
36 gfx::AcceleratedWidget widget) override;
37
38 private:
39 IDMap<CacaWindow> windows_;
40
41 DISALLOW_COPY_AND_ASSIGN(CacaWindowManager);
42 };
43
44 } // namespace ui
45
46 #endif // UI_OZONE_PLATFORM_CACA_CACA_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/caca/caca_window.cc ('k') | ui/ozone/platform/caca/caca_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698