OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/app_list/views/cached_label.h" | 5 #include "ui/app_list/views/cached_label.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "ui/base/layout.h" | 8 #include "ui/base/layout.h" |
9 #include "ui/base/resource/resource_bundle.h" | |
10 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
11 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
12 | 11 |
13 namespace app_list { | 12 namespace app_list { |
14 | 13 |
15 CachedLabel::CachedLabel() | 14 CachedLabel::CachedLabel() |
16 : needs_repaint_(true) { | 15 : needs_repaint_(true) { |
17 } | 16 } |
18 | 17 |
19 void CachedLabel::PaintToBackingImage() { | 18 void CachedLabel::PaintToBackingImage() { |
(...skipping 22 matching lines...) Expand all Loading... |
42 } | 41 } |
43 #endif | 42 #endif |
44 | 43 |
45 void CachedLabel::OnDeviceScaleFactorChanged( | 44 void CachedLabel::OnDeviceScaleFactorChanged( |
46 float device_scale_factor) { | 45 float device_scale_factor) { |
47 Invalidate(); | 46 Invalidate(); |
48 View::OnDeviceScaleFactorChanged(device_scale_factor); | 47 View::OnDeviceScaleFactorChanged(device_scale_factor); |
49 } | 48 } |
50 | 49 |
51 } // namespace app_list | 50 } // namespace app_list |
OLD | NEW |