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

Unified Diff: ui/ozone/public/ozone_platform.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/public/overlay_candidates_ozone.cc ('k') | ui/ozone/public/ozone_platform.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/ozone_platform.h
diff --git a/ui/ozone/public/ozone_platform.h b/ui/ozone/public/ozone_platform.h
deleted file mode 100644
index c01800c021a4d94094bc047e0f872d6f32c6bd02..0000000000000000000000000000000000000000
--- a/ui/ozone/public/ozone_platform.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2014 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_OZONE_PUBLIC_OZONE_PLATFORM_H_
-#define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/ozone/ozone_export.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace ui {
-
-class CursorFactoryOzone;
-class NativeDisplayDelegate;
-class SurfaceFactoryOzone;
-class GpuPlatformSupport;
-class GpuPlatformSupportHost;
-class PlatformWindow;
-class PlatformWindowDelegate;
-
-// Base class for Ozone platform implementations.
-//
-// Ozone platforms must override this class and implement the virtual
-// GetFooFactoryOzone() methods to provide implementations of the
-// various ozone interfaces.
-//
-// The OzonePlatform subclass can own any state needed by the
-// implementation that is shared between the various ozone interfaces,
-// such as a connection to the windowing system.
-//
-// A platform is free to use different implementations of each
-// interface depending on the context. You can, for example, create
-// different objects depending on the underlying hardware, command
-// line flags, or whatever is appropriate for the platform.
-class OZONE_EXPORT OzonePlatform {
- public:
- OzonePlatform();
- virtual ~OzonePlatform();
-
- // Initializes the subsystems/resources necessary for the UI process (e.g.
- // events, surface, etc.)
- static void InitializeForUI();
-
- // Initializes the subsystems/resources necessary for the GPU process.
- static void InitializeForGPU();
-
- static OzonePlatform* GetInstance();
-
- // Factory getters to override in subclasses. The returned objects will be
- // injected into the appropriate layer at startup. Subclasses should not
- // inject these objects themselves. Ownership is retained by OzonePlatform.
- virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
- virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
- virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0;
- virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0;
- virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
- PlatformWindowDelegate* delegate,
- const gfx::Rect& bounds) = 0;
- virtual scoped_ptr<ui::NativeDisplayDelegate>
- CreateNativeDisplayDelegate() = 0;
-
- private:
- virtual void InitializeUI() = 0;
- virtual void InitializeGPU() = 0;
-
- static void CreateInstance();
-
- static OzonePlatform* instance_;
-
- DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
« no previous file with comments | « ui/ozone/public/overlay_candidates_ozone.cc ('k') | ui/ozone/public/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698