Chromium Code Reviews| Index: ui/ozone/ozone_platform.h |
| diff --git a/ui/ozone/ozone_platform.h b/ui/ozone/ozone_platform.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4cc29059ab908d5d084b6de6886afb0ac771a54c |
| --- /dev/null |
| +++ b/ui/ozone/ozone_platform.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_EVENTS_OZONE_OZONE_PLATFORM_H_ |
| +#define UI_EVENTS_OZONE_OZONE_PLATFORM_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "ui/events/ozone/event_factory_ozone.h" |
| +#include "ui/gfx/ozone/surface_factory_ozone.h" |
| +#include "ui/ozone/ozone_export.h" |
| + |
| +namespace ui { |
| + |
| +class OZONE_EXPORT OzonePlatform { |
|
rjkroege
2013/10/25 18:24:02
this class is part of the external ozone api. it n
|
| + public: |
| + OzonePlatform(); |
| + virtual ~OzonePlatform(); |
| + |
| + static OzonePlatform* Create(); |
| + |
| + virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; |
| + virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; |
| + |
| + private: |
| + static OzonePlatform* instance_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(OzonePlatform); |
| +}; |
| + |
| +// Hook to be provided by the built-in default implementation. |
| +OzonePlatform* CreateDefaultOzonePlatform(); |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_OZONE_OZONE_PLATFORM_H_ |