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

Side by Side Diff: ui/base/text/bytes_formatting.h

Issue 9117001: For readability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_BASE_TEXT_BYTES_FORMATTING_H_ 5 #ifndef UI_BASE_TEXT_BYTES_FORMATTING_H_
6 #define UI_BASE_TEXT_BYTES_FORMATTING_H_ 6 #define UI_BASE_TEXT_BYTES_FORMATTING_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool show_units); 48 bool show_units);
49 49
50 // As above, but with "/s" units for speed values. 50 // As above, but with "/s" units for speed values.
51 // Ex: FormatSpeed(512, DATA_UNITS_KIBIBYTE, true) => "0.5 kB/s" 51 // Ex: FormatSpeed(512, DATA_UNITS_KIBIBYTE, true) => "0.5 kB/s"
52 // Ex: FormatSpeed(10*1024, DATA_UNITS_MEBIBYTE, false) => "0.1" 52 // Ex: FormatSpeed(10*1024, DATA_UNITS_MEBIBYTE, false) => "0.1"
53 string16 FormatSpeedWithUnits(int64 bytes, DataUnits units, bool show_units); 53 string16 FormatSpeedWithUnits(int64 bytes, DataUnits units, bool show_units);
54 54
55 } // namespace ui 55 } // namespace ui
56 56
57 #endif // UI_BASE_TEXT_BYTES_FORMATTING_H_ 57 #endif // UI_BASE_TEXT_BYTES_FORMATTING_H_
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698