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

Unified Diff: ui/gfx/font.cc

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/font.h ('k') | ui/gfx/font_fallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/font.cc
diff --git a/ui/gfx/font.cc b/ui/gfx/font.cc
deleted file mode 100644
index 1b5f1d8189a7ef8b9f4c246c4b619d4fa4cb4d60..0000000000000000000000000000000000000000
--- a/ui/gfx/font.cc
+++ /dev/null
@@ -1,85 +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.
-
-#include "ui/gfx/font.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "ui/gfx/platform_font.h"
-
-namespace gfx {
-
-////////////////////////////////////////////////////////////////////////////////
-// Font, public:
-
-Font::Font() : platform_font_(PlatformFont::CreateDefault()) {
-}
-
-Font::Font(const Font& other) : platform_font_(other.platform_font_) {
-}
-
-Font& Font::operator=(const Font& other) {
- platform_font_ = other.platform_font_;
- return *this;
-}
-
-Font::Font(NativeFont native_font)
- : platform_font_(PlatformFont::CreateFromNativeFont(native_font)) {
-}
-
-Font::Font(PlatformFont* platform_font) : platform_font_(platform_font) {
-}
-
-Font::Font(const std::string& font_name, int font_size)
- : platform_font_(PlatformFont::CreateFromNameAndSize(font_name,
- font_size)) {
-}
-
-Font::~Font() {
-}
-
-Font Font::Derive(int size_delta, int style) const {
- return platform_font_->DeriveFont(size_delta, style);
-}
-
-int Font::GetHeight() const {
- return platform_font_->GetHeight();
-}
-
-int Font::GetBaseline() const {
- return platform_font_->GetBaseline();
-}
-
-int Font::GetCapHeight() const {
- return platform_font_->GetCapHeight();
-}
-
-int Font::GetExpectedTextWidth(int length) const {
- return platform_font_->GetExpectedTextWidth(length);
-}
-
-int Font::GetStyle() const {
- return platform_font_->GetStyle();
-}
-
-std::string Font::GetFontName() const {
- return platform_font_->GetFontName();
-}
-
-std::string Font::GetActualFontNameForTesting() const {
- return platform_font_->GetActualFontNameForTesting();
-}
-
-int Font::GetFontSize() const {
- return platform_font_->GetFontSize();
-}
-
-const FontRenderParams& Font::GetFontRenderParams() const {
- return platform_font_->GetFontRenderParams();
-}
-
-NativeFont Font::GetNativeFont() const {
- return platform_font_->GetNativeFont();
-}
-
-} // namespace gfx
« no previous file with comments | « ui/gfx/font.h ('k') | ui/gfx/font_fallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698