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

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

Issue 269673005: media: Add MediaOzonePlatform support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix up dependency cycle Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_OZONE_PLATFORM_H_ 5 #ifndef UI_OZONE_OZONE_PLATFORM_H_
6 #define UI_OZONE_OZONE_PLATFORM_H_ 6 #define UI_OZONE_OZONE_PLATFORM_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/ozone_export.h" 9 #include "ui/ozone/ozone_export.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class SurfaceFactoryOzone; 12 class SurfaceFactoryOzone;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class CursorFactoryOzone; 17 class CursorFactoryOzone;
18 class EventFactoryOzone; 18 class EventFactoryOzone;
19 class InputMethodContextFactoryOzone; 19 class InputMethodContextFactoryOzone;
20 class NativeDisplayDelegate; 20 class NativeDisplayDelegate;
21 class VideoDecodeFactoryOzone;
21 22
22 // Base class for Ozone platform implementations. 23 // Base class for Ozone platform implementations.
23 // 24 //
24 // Ozone platforms must override this class and implement the virtual 25 // Ozone platforms must override this class and implement the virtual
25 // GetFooFactoryOzone() methods to provide implementations of the 26 // GetFooFactoryOzone() methods to provide implementations of the
26 // various ozone interfaces. 27 // various ozone interfaces.
27 // 28 //
28 // The OzonePlatform subclass can own any state needed by the 29 // The OzonePlatform subclass can own any state needed by the
29 // implementation that is shared between the various ozone interfaces, 30 // implementation that is shared between the various ozone interfaces,
30 // such as a connection to the windowing system. 31 // such as a connection to the windowing system.
(...skipping 14 matching lines...) Expand all
45 static OzonePlatform* GetInstance(); 46 static OzonePlatform* GetInstance();
46 47
47 // Factory getters to override in subclasses. The returned objects will be 48 // Factory getters to override in subclasses. The returned objects will be
48 // injected into the appropriate layer at startup. Subclasses should not 49 // injected into the appropriate layer at startup. Subclasses should not
49 // inject these objects themselves. Ownership is retained by OzonePlatform. 50 // inject these objects themselves. Ownership is retained by OzonePlatform.
50 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; 51 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
51 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; 52 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0;
52 virtual ui::InputMethodContextFactoryOzone* 53 virtual ui::InputMethodContextFactoryOzone*
53 GetInputMethodContextFactoryOzone() = 0; 54 GetInputMethodContextFactoryOzone() = 0;
54 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 55 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
56 virtual ui::VideoDecodeFactoryOzone*
57 GetVideoDecodeFactoryOzone() = 0;
55 #if defined(OS_CHROMEOS) 58 #if defined(OS_CHROMEOS)
56 virtual scoped_ptr<ui::NativeDisplayDelegate> 59 virtual scoped_ptr<ui::NativeDisplayDelegate>
57 CreateNativeDisplayDelegate() = 0; 60 CreateNativeDisplayDelegate() = 0;
58 #endif 61 #endif
59 62
60 private: 63 private:
61 static OzonePlatform* instance_; 64 static OzonePlatform* instance_;
62 65
63 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 66 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
64 }; 67 };
65 68
66 } // namespace ui 69 } // namespace ui
67 70
68 #endif // UI_OZONE_OZONE_PLATFORM_H_ 71 #endif // UI_OZONE_OZONE_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698