| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // Sets |touch_dragging_| flag and updates UI. | 57 // Sets |touch_dragging_| flag and updates UI. |
| 58 void SetTouchDragging(bool touch_dragging); | 58 void SetTouchDragging(bool touch_dragging); |
| 59 | 59 |
| 60 // Invoked when |mouse_drag_timer_| fires to show dragging UI. | 60 // Invoked when |mouse_drag_timer_| fires to show dragging UI. |
| 61 void OnMouseDragTimer(); | 61 void OnMouseDragTimer(); |
| 62 | 62 |
| 63 // AppListItemModelObserver overrides: | 63 // AppListItemModelObserver overrides: |
| 64 virtual void ItemIconChanged() OVERRIDE; | 64 virtual void ItemIconChanged() OVERRIDE; |
| 65 virtual void ItemTitleChanged() OVERRIDE; | 65 virtual void ItemTitleChanged() OVERRIDE; |
| 66 virtual void ItemHighlightedChanged() OVERRIDE; | 66 virtual void ItemHighlightedChanged() OVERRIDE; |
| 67 virtual void ItemIsInstallingChanged() OVERRIDE; |
| 68 virtual void ItemPercentDownloadedChanged() OVERRIDE; |
| 67 | 69 |
| 68 // views::View overrides: | 70 // views::View overrides: |
| 69 virtual std::string GetClassName() const OVERRIDE; | 71 virtual std::string GetClassName() const OVERRIDE; |
| 70 virtual void Layout() OVERRIDE; | 72 virtual void Layout() OVERRIDE; |
| 71 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 73 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 72 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 74 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 73 | 75 |
| 74 // views::ContextMenuController overrides: | 76 // views::ContextMenuController overrides: |
| 75 virtual void ShowContextMenuForView(views::View* source, | 77 virtual void ShowContextMenuForView(views::View* source, |
| 76 const gfx::Point& point) OVERRIDE; | 78 const gfx::Point& point) OVERRIDE; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 107 | 109 |
| 108 // A timer to defer showing drag UI when mouse is pressed. | 110 // A timer to defer showing drag UI when mouse is pressed. |
| 109 base::OneShotTimer<AppListItemView> mouse_drag_timer_; | 111 base::OneShotTimer<AppListItemView> mouse_drag_timer_; |
| 110 | 112 |
| 111 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 113 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace app_list | 116 } // namespace app_list |
| 115 | 117 |
| 116 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ | 118 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ |
| OLD | NEW |