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

Unified Diff: ui/app_list/views/cached_label.h

Issue 405373002: Use a correct scale factor in app_list::CachedLabel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: call parent Created 6 years, 5 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 | « no previous file | ui/app_list/views/cached_label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/cached_label.h
diff --git a/ui/app_list/views/cached_label.h b/ui/app_list/views/cached_label.h
index bdf269795a1fa247d8b0cf683ad559c23de0ef13..8b4360a1081a6f7e0224f74ba4ab9dbce1282ed6 100644
--- a/ui/app_list/views/cached_label.h
+++ b/ui/app_list/views/cached_label.h
@@ -27,10 +27,13 @@ class CachedLabel : public views::Label {
void PaintToBackingImage();
#if defined(OS_WIN)
- // views::View overrides.
+ // Overridden from views::View:
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
#endif
+ // Overridden from ui::LayerDelegate:
+ virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
+
private:
bool needs_repaint_;
gfx::ImageSkia image_;
« no previous file with comments | « no previous file | ui/app_list/views/cached_label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698