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

Side by Side Diff: views/controls/label.cc

Issue 3066014: Cleanup: Remove unneeded headers from app/ (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "views/controls/label.h" 5 #include "views/controls/label.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <limits> 8 #include <limits>
9 9
10 #include "app/l10n_util.h"
11 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
12 #include "app/text_elider.h" 11 #include "app/text_elider.h"
13 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
14 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/string_util.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "gfx/canvas_skia.h" 16 #include "gfx/canvas_skia.h"
17 #include "gfx/color_utils.h" 17 #include "gfx/color_utils.h"
18 #include "gfx/font.h" 18 #include "gfx/font.h"
19 #include "gfx/insets.h" 19 #include "gfx/insets.h"
20 #include "views/background.h" 20 #include "views/background.h"
21 21
22 namespace views { 22 namespace views {
23 23
24 // static 24 // static
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 *paint_text = gfx::ElideText(text_, font_, width(), true); 444 *paint_text = gfx::ElideText(text_, font_, width(), true);
445 } else { 445 } else {
446 *paint_text = text_; 446 *paint_text = text_;
447 } 447 }
448 448
449 *text_bounds = GetTextBounds(); 449 *text_bounds = GetTextBounds();
450 *flags = ComputeMultiLineFlags(); 450 *flags = ComputeMultiLineFlags();
451 } 451 }
452 452
453 } // namespace views 453 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/combobox/native_combobox_win.cc ('k') | views/controls/listbox/native_listbox_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698