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

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

Issue 387993002: ozone: caca: Preparatory work for resize / multiple windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
index dbe194358ef5913e0c378e99493e06d427c6c46a..052985e7266d25820ed9e1d681ec60a4e3de6c8f 100644
--- a/ui/ozone/platform/caca/caca_connection.h
+++ b/ui/ozone/platform/caca/caca_connection.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "ui/gfx/geometry/size.h"
+#include "ui/ozone/platform/caca/scoped_caca_types.h"
namespace ui {
@@ -21,16 +22,19 @@ class CacaConnection {
CacaConnection();
~CacaConnection();
- void Initialize();
+ 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_; }
+ caca_display_t* display() const { return display_.get(); }
private:
- caca_canvas_t* canvas_;
- caca_display_t* display_;
+ // 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.
« 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