OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MAIN_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // |parent| is used to determine the image scale factor to use. | 78 // |parent| is used to determine the image scale factor to use. |
79 void PreloadIcons(gfx::NativeView parent); | 79 void PreloadIcons(gfx::NativeView parent); |
80 | 80 |
81 // Invoked when |icon_loading_wait_timer_| fires. | 81 // Invoked when |icon_loading_wait_timer_| fires. |
82 void OnIconLoadingWaitTimer(); | 82 void OnIconLoadingWaitTimer(); |
83 | 83 |
84 // Invoked from an IconLoader when icon loading is finished. | 84 // Invoked from an IconLoader when icon loading is finished. |
85 void OnItemIconLoaded(IconLoader* loader); | 85 void OnItemIconLoaded(IconLoader* loader); |
86 | 86 |
87 // Overridden from views::View: | 87 // Overridden from views::View: |
| 88 virtual const char* GetClassName() const OVERRIDE; |
88 virtual void ChildVisibilityChanged(views::View* child) OVERRIDE; | 89 virtual void ChildVisibilityChanged(views::View* child) OVERRIDE; |
89 | 90 |
90 // Overridden from AppsGridViewDelegate: | 91 // Overridden from AppsGridViewDelegate: |
91 virtual void ActivateApp(AppListItem* item, int event_flags) OVERRIDE; | 92 virtual void ActivateApp(AppListItem* item, int event_flags) OVERRIDE; |
92 virtual void GetShortcutPathForApp( | 93 virtual void GetShortcutPathForApp( |
93 const std::string& app_id, | 94 const std::string& app_id, |
94 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; | 95 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; |
95 | 96 |
96 // Overridden from SearchBoxViewDelegate: | 97 // Overridden from SearchBoxViewDelegate: |
97 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; | 98 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; |
(...skipping 16 matching lines...) Expand all Loading... |
114 ScopedVector<IconLoader> pending_icon_loaders_; | 115 ScopedVector<IconLoader> pending_icon_loaders_; |
115 | 116 |
116 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 117 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
117 | 118 |
118 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 119 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
119 }; | 120 }; |
120 | 121 |
121 } // namespace app_list | 122 } // namespace app_list |
122 | 123 |
123 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 124 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |