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

Unified Diff: ui/ozone/platform/caca/caca_connection.h

Issue 387953004: ozone: caca: Convert to PlatformWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & nits Created 6 years, 5 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/caca.gypi ('k') | ui/ozone/platform/caca/caca_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/caca/caca_connection.h
diff --git a/ui/ozone/platform/caca/caca_connection.h b/ui/ozone/platform/caca/caca_connection.h
deleted file mode 100644
index 052985e7266d25820ed9e1d681ec60a4e3de6c8f..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/caca/caca_connection.h
+++ /dev/null
@@ -1,51 +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_PLATFORM_CACA_CACA_CONNECTION_H_
-#define UI_OZONE_PLATFORM_CACA_CACA_CONNECTION_H_
-
-#include <caca.h>
-
-#include "base/macros.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/ozone/platform/caca/scoped_caca_types.h"
-
-namespace ui {
-
-// Basic initialization of Libcaca. This needs to be shared between SFO and EFO
-// since both need the |display_| to draw and process events respectively.
-// Note, |canvas_| needs to be here since it is needed for creating a
-// |display_|.
-class CacaConnection {
- public:
- CacaConnection();
- ~CacaConnection();
-
- bool Initialize();
-
- // This is the Caca canvas size.
- gfx::Size physical_size() const { return physical_size_; }
- gfx::Size bitmap_size() const { return bitmap_size_; }
- caca_display_t* display() const { return display_.get(); }
-
- private:
- // Sync sizes with libcaca.
- void UpdateDisplaySize();
-
- ScopedCacaCanvas canvas_;
- ScopedCacaDisplay display_;
-
- // Size of the console in characters. This can be changed by setting
- // CACA_GEOMETRY environment variable.
- gfx::Size physical_size_;
-
- // Size of the backing buffer we draw into. Size in pixels.
- gfx::Size bitmap_size_;
-
- DISALLOW_COPY_AND_ASSIGN(CacaConnection);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_CACA_CACA_CONNECTION_H_
« no previous file with comments | « ui/ozone/platform/caca/caca.gypi ('k') | ui/ozone/platform/caca/caca_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698