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

Side by Side Diff: ui/ozone/ozone_platform.h

Issue 44933002: Implement OzonePlatform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 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_EVENTS_OZONE_OZONE_PLATFORM_H_
6 #define UI_EVENTS_OZONE_OZONE_PLATFORM_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/events/ozone/event_factory_ozone.h"
10 #include "ui/gfx/ozone/surface_factory_ozone.h"
11 #include "ui/ozone/ozone_export.h"
12
13 namespace ui {
14
15 class OZONE_EXPORT OzonePlatform {
rjkroege 2013/10/25 18:24:02 this class is part of the external ozone api. it n
16 public:
17 OzonePlatform();
18 virtual ~OzonePlatform();
19
20 static OzonePlatform* Create();
21
22 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
23 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0;
24
25 private:
26 static OzonePlatform* instance_;
27
28 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
29 };
30
31 // Hook to be provided by the built-in default implementation.
32 OzonePlatform* CreateDefaultOzonePlatform();
33
34 } // namespace ui
35
36 #endif // UI_OZONE_OZONE_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698