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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // Invoked when |mouse_drag_timer_| fires to show dragging UI. | 109 // Invoked when |mouse_drag_timer_| fires to show dragging UI. |
110 void OnMouseDragTimer(); | 110 void OnMouseDragTimer(); |
111 | 111 |
112 // If the item is not in a folder, not highlighted, not being dragged, and not | 112 // If the item is not in a folder, not highlighted, not being dragged, and not |
113 // having something dropped onto it, enables subpixel AA for the title. | 113 // having something dropped onto it, enables subpixel AA for the title. |
114 void SetTitleSubpixelAA(); | 114 void SetTitleSubpixelAA(); |
115 | 115 |
116 // views::View overrides: | 116 // views::View overrides: |
117 const char* GetClassName() const override; | 117 const char* GetClassName() const override; |
118 void Layout() override; | 118 void Layout() override; |
119 void SchedulePaintInRect(const gfx::Rect& r) override; | |
120 void OnPaint(gfx::Canvas* canvas) override; | 119 void OnPaint(gfx::Canvas* canvas) override; |
121 | 120 |
122 // views::ContextMenuController overrides: | 121 // views::ContextMenuController overrides: |
123 void ShowContextMenuForView(views::View* source, | 122 void ShowContextMenuForView(views::View* source, |
124 const gfx::Point& point, | 123 const gfx::Point& point, |
125 ui::MenuSourceType source_type) override; | 124 ui::MenuSourceType source_type) override; |
126 | 125 |
127 // views::CustomButton overrides: | 126 // views::CustomButton overrides: |
128 void StateChanged() override; | 127 void StateChanged() override; |
129 bool ShouldEnterPushedState(const ui::Event& event) override; | 128 bool ShouldEnterPushedState(const ui::Event& event) override; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 165 |
167 // A timer to defer showing drag UI when mouse is pressed. | 166 // A timer to defer showing drag UI when mouse is pressed. |
168 base::OneShotTimer<AppListItemView> mouse_drag_timer_; | 167 base::OneShotTimer<AppListItemView> mouse_drag_timer_; |
169 | 168 |
170 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 169 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
171 }; | 170 }; |
172 | 171 |
173 } // namespace app_list | 172 } // namespace app_list |
174 | 173 |
175 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ | 174 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ |
OLD | NEW |