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

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

Issue 681873002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « ui/app_list/views/start_page_view.cc ('k') | ui/app_list/views/top_icon_animation_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TILE_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
7 7
8 #include "ui/app_list/app_list_export.h" 8 #include "ui/app_list/app_list_export.h"
9 #include "ui/app_list/search_result_observer.h" 9 #include "ui/app_list/search_result_observer.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
11 #include "ui/views/controls/button/custom_button.h" 11 #include "ui/views/controls/button/custom_button.h"
12 12
13 namespace views { 13 namespace views {
14 class ImageView; 14 class ImageView;
15 class Label; 15 class Label;
16 } 16 }
17 17
18 namespace app_list { 18 namespace app_list {
19 19
20 class SearchResult; 20 class SearchResult;
21 21
22 // The view for a tile in the app list on the start/search page. 22 // The view for a tile in the app list on the start/search page.
23 class APP_LIST_EXPORT TileItemView : public views::CustomButton, 23 class APP_LIST_EXPORT TileItemView : public views::CustomButton,
24 public views::ButtonListener, 24 public views::ButtonListener,
25 public SearchResultObserver { 25 public SearchResultObserver {
26 public: 26 public:
27 TileItemView(); 27 TileItemView();
28 virtual ~TileItemView(); 28 ~TileItemView() override;
29 29
30 void SetSearchResult(SearchResult* item); 30 void SetSearchResult(SearchResult* item);
31 31
32 private: 32 private:
33 // Overridden from views::View: 33 // Overridden from views::View:
34 virtual gfx::Size GetPreferredSize() const override; 34 gfx::Size GetPreferredSize() const override;
35 35
36 // Overridden from views::ButtonListener: 36 // Overridden from views::ButtonListener:
37 virtual void ButtonPressed(views::Button* sender, 37 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
38 const ui::Event& event) override;
39 38
40 // Overridden from SearchResultObserver: 39 // Overridden from SearchResultObserver:
41 virtual void OnIconChanged() override; 40 void OnIconChanged() override;
42 virtual void OnResultDestroying() override; 41 void OnResultDestroying() override;
43 42
44 // Owned by the model provided by the AppListViewDelegate. 43 // Owned by the model provided by the AppListViewDelegate.
45 SearchResult* item_; 44 SearchResult* item_;
46 45
47 views::ImageView* icon_; // Owned by views hierarchy. 46 views::ImageView* icon_; // Owned by views hierarchy.
48 views::Label* title_; // Owned by views hierarchy. 47 views::Label* title_; // Owned by views hierarchy.
49 48
50 DISALLOW_COPY_AND_ASSIGN(TileItemView); 49 DISALLOW_COPY_AND_ASSIGN(TileItemView);
51 }; 50 };
52 51
53 } // namespace app_list 52 } // namespace app_list
54 53
55 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ 54 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/start_page_view.cc ('k') | ui/app_list/views/top_icon_animation_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698