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

Unified Diff: ui/ozone/platform/caca/ozone_platform_caca.cc

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/platform/caca/ozone_platform_caca.h ('k') | ui/ozone/platform/caca/scoped_caca_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/ozone_platform_caca.cc
diff --git a/ui/ozone/platform/caca/ozone_platform_caca.cc b/ui/ozone/platform/caca/ozone_platform_caca.cc
deleted file mode 100644
index c3b3233bfdf14170b066a24182f1332ffcb08f9d..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/caca/ozone_platform_caca.cc
+++ /dev/null
@@ -1,70 +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.
-
-#include "ui/ozone/platform/caca/ozone_platform_caca.h"
-
-#include "ui/ozone/common/native_display_delegate_ozone.h"
-#include "ui/ozone/platform/caca/caca_event_source.h"
-#include "ui/ozone/platform/caca/caca_window.h"
-#include "ui/ozone/platform/caca/caca_window_manager.h"
-#include "ui/ozone/public/cursor_factory_ozone.h"
-#include "ui/ozone/public/ozone_platform.h"
-
-namespace ui {
-
-namespace {
-
-class OzonePlatformCaca : public OzonePlatform {
- public:
- OzonePlatformCaca() {}
- virtual ~OzonePlatformCaca() {}
-
- // OzonePlatform:
- virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() override {
- return window_manager_.get();
- }
- virtual CursorFactoryOzone* GetCursorFactoryOzone() override {
- return cursor_factory_ozone_.get();
- }
- virtual GpuPlatformSupport* GetGpuPlatformSupport() override {
- return NULL; // no GPU support
- }
- virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() override {
- return NULL; // no GPU support
- }
- virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
- PlatformWindowDelegate* delegate,
- const gfx::Rect& bounds) override {
- scoped_ptr<CacaWindow> caca_window(new CacaWindow(
- delegate, window_manager_.get(), event_source_.get(), bounds));
- if (!caca_window->Initialize())
- return nullptr;
- return caca_window.Pass();
- }
- virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
- override {
- return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone());
- }
-
- virtual void InitializeUI() override {
- window_manager_.reset(new CacaWindowManager);
- event_source_.reset(new CacaEventSource());
- cursor_factory_ozone_.reset(new CursorFactoryOzone());
- }
-
- virtual void InitializeGPU() override {}
-
- private:
- scoped_ptr<CacaWindowManager> window_manager_;
- scoped_ptr<CacaEventSource> event_source_;
- scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
-
- DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca);
-};
-
-} // namespace
-
-OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; }
-
-} // namespace ui
« no previous file with comments | « ui/ozone/platform/caca/ozone_platform_caca.h ('k') | ui/ozone/platform/caca/scoped_caca_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698