| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void ItemPercentDownloadedChanged() OVERRIDE; | 73 virtual void ItemPercentDownloadedChanged() OVERRIDE; |
| 74 | 74 |
| 75 // views::View overrides: | 75 // views::View overrides: |
| 76 virtual const char* GetClassName() const OVERRIDE; | 76 virtual const char* GetClassName() const OVERRIDE; |
| 77 virtual void Layout() OVERRIDE; | 77 virtual void Layout() OVERRIDE; |
| 78 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 78 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 79 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 79 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 80 | 80 |
| 81 // views::ContextMenuController overrides: | 81 // views::ContextMenuController overrides: |
| 82 virtual void ShowContextMenuForView(views::View* source, | 82 virtual void ShowContextMenuForView(views::View* source, |
| 83 const gfx::Point& point) OVERRIDE; | 83 const gfx::Point& point, |
| 84 ui::MenuSourceType source_type) OVERRIDE; |
| 84 | 85 |
| 85 // views::CustomButton overrides: | 86 // views::CustomButton overrides: |
| 86 virtual void StateChanged() OVERRIDE; | 87 virtual void StateChanged() OVERRIDE; |
| 87 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; | 88 virtual bool ShouldEnterPushedState(const ui::Event& event) OVERRIDE; |
| 88 | 89 |
| 89 // views::View overrides: | 90 // views::View overrides: |
| 90 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 91 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 91 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 92 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 92 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 93 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 93 virtual void OnMouseCaptureLost() OVERRIDE; | 94 virtual void OnMouseCaptureLost() OVERRIDE; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 114 | 115 |
| 115 // A timer to defer showing drag UI when mouse is pressed. | 116 // A timer to defer showing drag UI when mouse is pressed. |
| 116 base::OneShotTimer<AppListItemView> mouse_drag_timer_; | 117 base::OneShotTimer<AppListItemView> mouse_drag_timer_; |
| 117 | 118 |
| 118 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 119 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 } // namespace app_list | 122 } // namespace app_list |
| 122 | 123 |
| 123 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ | 124 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ |
| OLD | NEW |