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

Unified Diff: ui/gfx/pango_util.h

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? 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/gfx/nine_image_painter.h ('k') | ui/gfx/pango_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/pango_util.h
diff --git a/ui/gfx/pango_util.h b/ui/gfx/pango_util.h
deleted file mode 100644
index e194b0a4688877dc534727f1ce54e52584f6eb9e..0000000000000000000000000000000000000000
--- a/ui/gfx/pango_util.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2012 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_GFX_PANGO_UTIL_H_
-#define UI_GFX_PANGO_UTIL_H_
-
-#include <cairo/cairo.h>
-#include <pango/pango.h>
-
-#include "base/i18n/rtl.h"
-#include "base/logging.h"
-#include "base/strings/string16.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/gfx_export.h"
-
-namespace gfx {
-
-class FontList;
-
-// Utility class to ensure that PangoFontDescription is freed.
-class ScopedPangoFontDescription {
- public:
- explicit ScopedPangoFontDescription(PangoFontDescription* description)
- : description_(description) {
- DCHECK(description);
- }
-
- explicit ScopedPangoFontDescription(const std::string& str)
- : description_(pango_font_description_from_string(str.c_str())) {
- DCHECK(description_);
- }
-
- ~ScopedPangoFontDescription() {
- pango_font_description_free(description_);
- }
-
- PangoFontDescription* get() { return description_; }
-
- private:
- PangoFontDescription* description_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedPangoFontDescription);
-};
-
-// ----------------------------------------------------------------------------
-// All other methods in this file are only to be used within the ui/ directory.
-// They are shared with internal skia interfaces.
-// ----------------------------------------------------------------------------
-
-// Configures |layout| for the passed-in parameters.
-void SetUpPangoLayout(
- PangoLayout* layout,
- const base::string16& text,
- const FontList& font_list,
- base::i18n::TextDirection text_direction,
- int flags);
-
-// Returns the size in pixels for the specified |pango_font|.
-int GetPangoFontSizeInPixels(PangoFontDescription* pango_font);
-
-// Retrieves the Pango metrics for a Pango font description. Caches the metrics
-// and never frees them. The metrics objects are relatively small and very
-// expensive to look up.
-PangoFontMetrics* GetPangoFontMetrics(PangoFontDescription* desc);
-
-} // namespace gfx
-
-#endif // UI_GFX_PANGO_UTIL_H_
« no previous file with comments | « ui/gfx/nine_image_painter.h ('k') | ui/gfx/pango_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698