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

Side by Side Diff: ui/app_list/views/cached_label.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
OLDNEW
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 #ifndef UI_APP_LIST_VIEWS_CACHED_LABEL_H_ 5 #ifndef UI_APP_LIST_VIEWS_CACHED_LABEL_H_
6 #define UI_APP_LIST_VIEWS_CACHED_LABEL_H_ 6 #define UI_APP_LIST_VIEWS_CACHED_LABEL_H_
7 7
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/views/controls/label.h" 9 #include "ui/views/controls/label.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 10 matching lines...) Expand all
21 CachedLabel(); 21 CachedLabel();
22 22
23 // Have the next call to OnPaint() update the backing image. 23 // Have the next call to OnPaint() update the backing image.
24 void Invalidate() { needs_repaint_ = true; } 24 void Invalidate() { needs_repaint_ = true; }
25 25
26 // Calls the base label's OnPaint() to paint into a backing image. 26 // Calls the base label's OnPaint() to paint into a backing image.
27 void PaintToBackingImage(); 27 void PaintToBackingImage();
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 // Overridden from views::View: 30 // Overridden from views::View:
31 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 31 virtual void OnPaint(gfx::Canvas* canvas) override;
32 #endif 32 #endif
33 33
34 // Overridden from ui::LayerDelegate: 34 // Overridden from ui::LayerDelegate:
35 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 35 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) override;
36 36
37 private: 37 private:
38 bool needs_repaint_; 38 bool needs_repaint_;
39 gfx::ImageSkia image_; 39 gfx::ImageSkia image_;
40 }; 40 };
41 41
42 } // namespace app_list 42 } // namespace app_list
43 43
44 #endif // UI_APP_LIST_VIEWS_CACHED_LABEL_H_ 44 #endif // UI_APP_LIST_VIEWS_CACHED_LABEL_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/apps_grid_view_unittest.cc ('k') | ui/app_list/views/contents_switcher_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698