| 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 ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 5 #ifndef ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
| 6 #define ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 6 #define ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/app_list/app_list_item_model_observer.h" | 9 #include "ash/app_list/app_list_item_model_observer.h" |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // views::View overrides: | 54 // views::View overrides: |
| 55 virtual std::string GetClassName() const OVERRIDE; | 55 virtual std::string GetClassName() const OVERRIDE; |
| 56 virtual gfx::Size GetPreferredSize() OVERRIDE; | 56 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 57 virtual void Layout() OVERRIDE; | 57 virtual void Layout() OVERRIDE; |
| 58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 // views::ContextMenuController overrides: | 61 // views::ContextMenuController overrides: |
| 62 virtual void ShowContextMenuForView(views::View* source, | 62 virtual void ShowContextMenuForView(views::View* source, |
| 63 const gfx::Point& p, | 63 const gfx::Point& point) OVERRIDE; |
| 64 bool is_mouse_gesture) OVERRIDE; | |
| 65 | 64 |
| 66 AppListItemModel* model_; | 65 AppListItemModel* model_; |
| 67 | 66 |
| 68 views::ImageView* icon_; | 67 views::ImageView* icon_; |
| 69 views::Label* title_; | 68 views::Label* title_; |
| 70 | 69 |
| 71 scoped_ptr<views::MenuRunner> context_menu_runner_; | 70 scoped_ptr<views::MenuRunner> context_menu_runner_; |
| 72 | 71 |
| 73 gfx::Size icon_size_; | 72 gfx::Size icon_size_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(AppListItemView); | 74 DISALLOW_COPY_AND_ASSIGN(AppListItemView); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace ash | 77 } // namespace ash |
| 79 | 78 |
| 80 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ | 79 #endif // ASH_APP_LIST_APP_LIST_ITEM_VIEW_H_ |
| OLD | NEW |