Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: ui/app_list/views/app_list_main_view.h

Issue 17370003: [Win] App launcher drag/drop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/app_list_main_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "ui/app_list/apps_grid_view_delegate.h" 10 #include "ui/app_list/apps_grid_view_delegate.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 views::View* anchor); 62 views::View* anchor);
63 63
64 // Invoked when |icon_loading_wait_timer_| fires. 64 // Invoked when |icon_loading_wait_timer_| fires.
65 void OnIconLoadingWaitTimer(); 65 void OnIconLoadingWaitTimer();
66 66
67 // Invoked from an IconLoader when icon loading is finished. 67 // Invoked from an IconLoader when icon loading is finished.
68 void OnItemIconLoaded(IconLoader* loader); 68 void OnItemIconLoaded(IconLoader* loader);
69 69
70 // Overridden from AppsGridViewDelegate: 70 // Overridden from AppsGridViewDelegate:
71 virtual void ActivateApp(AppListItemModel* item, int event_flags) OVERRIDE; 71 virtual void ActivateApp(AppListItemModel* item, int event_flags) OVERRIDE;
72 virtual void GetShortcutPathForApp(
73 const std::string& app_id,
74 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE;
72 75
73 // Overridden from SearchBoxViewDelegate: 76 // Overridden from SearchBoxViewDelegate:
74 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; 77 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE;
75 78
76 // Overridden from SearchResultListViewDelegate: 79 // Overridden from SearchResultListViewDelegate:
77 virtual void OpenResult(SearchResult* result, 80 virtual void OpenResult(SearchResult* result,
78 int event_flags) OVERRIDE; 81 int event_flags) OVERRIDE;
79 virtual void InvokeResultAction(SearchResult* result, 82 virtual void InvokeResultAction(SearchResult* result,
80 int action_index, 83 int action_index,
81 int event_flags) OVERRIDE; 84 int event_flags) OVERRIDE;
82 85
83 AppListViewDelegate* delegate_; 86 AppListViewDelegate* delegate_;
84 AppListModel* model_; 87 AppListModel* model_;
85 88
86 SearchBoxView* search_box_view_; // Owned by views hierarchy. 89 SearchBoxView* search_box_view_; // Owned by views hierarchy.
87 ContentsView* contents_view_; // Owned by views hierarchy. 90 ContentsView* contents_view_; // Owned by views hierarchy.
88 91
89 // A timer that fires when maximum allowed time to wait for icon loading has 92 // A timer that fires when maximum allowed time to wait for icon loading has
90 // passed. 93 // passed.
91 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; 94 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_;
92 95
93 ScopedVector<IconLoader> pending_icon_loaders_; 96 ScopedVector<IconLoader> pending_icon_loaders_;
94 97
95 DISALLOW_COPY_AND_ASSIGN(AppListMainView); 98 DISALLOW_COPY_AND_ASSIGN(AppListMainView);
96 }; 99 };
97 100
98 } // namespace app_list 101 } // namespace app_list
99 102
100 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ 103 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/app_list/views/app_list_main_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698