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

Unified Diff: ui/gfx/text_utils.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/text_elider_unittest.cc ('k') | ui/gfx/text_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/text_utils.h
diff --git a/ui/gfx/text_utils.h b/ui/gfx/text_utils.h
deleted file mode 100644
index 088f97cea9e6077ce461f40c3cfcad97a51d3ed1..0000000000000000000000000000000000000000
--- a/ui/gfx/text_utils.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 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_TEXT_UTILS_H_
-#define UI_GFX_TEXT_UTILS_H_
-
-#include "base/strings/string16.h"
-#include "ui/gfx/gfx_export.h"
-
-namespace gfx {
-
-class FontList;
-
-// Strip the accelerator char (typically '&') from a menu string. A double
-// accelerator char ('&&') will be converted to a single char. The out params
-// |accelerated_char_pos| and |accelerated_char_span| will be set to the index
-// and span of the last accelerated character, respectively, or -1 and 0 if
-// there was none.
-GFX_EXPORT base::string16 RemoveAcceleratorChar(const base::string16& s,
- base::char16 accelerator_char,
- int* accelerated_char_pos,
- int* accelerated_char_span);
-
-// Returns the number of horizontal pixels needed to display the specified
-// |text| with |font_list|.
-GFX_EXPORT int GetStringWidth(const base::string16& text,
- const FontList& font_list);
-
-// This is same as GetStringWidth except that fractional width is returned.
-GFX_EXPORT float GetStringWidthF(const base::string16& text,
- const FontList& font_list);
-
-} // namespace gfx
-
-#endif // UI_GFX_TEXT_UTILS_H_
« no previous file with comments | « ui/gfx/text_elider_unittest.cc ('k') | ui/gfx/text_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698