OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_APP_LIST_ITEM_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // AppListItemObserver overrides: | 101 // AppListItemObserver overrides: |
102 virtual void ItemIconChanged() OVERRIDE; | 102 virtual void ItemIconChanged() OVERRIDE; |
103 virtual void ItemNameChanged() OVERRIDE; | 103 virtual void ItemNameChanged() OVERRIDE; |
104 virtual void ItemHighlightedChanged() OVERRIDE; | 104 virtual void ItemHighlightedChanged() OVERRIDE; |
105 virtual void ItemIsInstallingChanged() OVERRIDE; | 105 virtual void ItemIsInstallingChanged() OVERRIDE; |
106 virtual void ItemPercentDownloadedChanged() OVERRIDE; | 106 virtual void ItemPercentDownloadedChanged() OVERRIDE; |
107 | 107 |
108 // views::View overrides: | 108 // views::View overrides: |
109 virtual const char* GetClassName() const OVERRIDE; | 109 virtual const char* GetClassName() const OVERRIDE; |
110 virtual void Layout() OVERRIDE; | 110 virtual void Layout() OVERRIDE; |
111 virtual void SchedulePaintInRect(const gfx::Rect& r) OVERRIDE; | |
112 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 111 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
113 | 112 |
114 // views::ContextMenuController overrides: | 113 // views::ContextMenuController overrides: |
115 virtual void ShowContextMenuForView(views::View* source, | 114 virtual void ShowContextMenuForView(views::View* source, |
116 const gfx::Point& point, | 115 const gfx::Point& point, |
117 ui::MenuSourceType source_type) OVERRIDE; | 116 ui::MenuSourceType source_type) OVERRIDE; |
118 | 117 |
119 // views::CustomButton overrides: | 118 // views::CustomButton overrides: |
120 virtual void StateChanged() OVERRIDE; | 119 virtual void StateChanged() OVERRIDE; |
121 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; | 120 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
149 | 148 |
150 // A timer to defer showing drag UI when mouse is pressed. | 149 // A timer to defer showing drag UI when mouse is pressed. |
151 base::OneShotTimer<AppListItemView> mouse_drag_timer_; | 150 base::OneShotTimer<AppListItemView> mouse_drag_timer_; |
152 | 151 |
153 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 152 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
154 }; | 153 }; |
155 | 154 |
156 } // namespace app_list | 155 } // namespace app_list |
157 | 156 |
158 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ | 157 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ |
OLD | NEW |