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

Unified Diff: ui/gfx/gtk_util.h

Issue 7511029: Implement Pango RenderText for Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix cursor bounds for RTL UI Created 9 years, 4 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
Index: ui/gfx/gtk_util.h
===================================================================
--- ui/gfx/gtk_util.h (revision 96870)
+++ ui/gfx/gtk_util.h (working copy)
@@ -7,11 +7,13 @@
#pragma once
#include <glib-object.h>
+#include <pango/pango-layout.h>
#include <stdint.h>
#include <string>
#include <vector>
+#include "base/i18n/rtl.h"
#include "base/memory/scoped_ptr.h"
#include "ui/base/ui_export.h"
@@ -66,6 +68,13 @@
// assumed to be 4 * |width|.
uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride);
+class Font;
+void SetupPangoLayout(PangoLayout* layout,
msw 2011/08/19 23:16:59 Maybe move this up with GetPangoContext and GetPan
xji 2011/08/22 23:57:28 done. but the definition depends on skia_util.h an
msw 2011/08/23 08:01:01 Yeah, I don't think it should either... let's cons
+ const string16& text,
+ const gfx::Font& font,
+ int width,
+ base::i18n::TextDirection text_direction,
+ int flags);
} // namespace gfx
// It's not legal C++ to have a templatized typedefs, so we wrap it in a

Powered by Google App Engine
This is Rietveld 408576698