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

Side by Side Diff: ui/app_list/app_list_view_delegate.h

Issue 25859005: Elim ActivateAppListItem, ChromeAppListItem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fixes Created 7 years, 2 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/app_list_item_model.cc ('k') | ui/app_list/cocoa/apps_grid_controller.h » ('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 (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_APP_LIST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/app_list/app_list_export.h" 10 #include "ui/app_list/app_list_export.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate. 46 // Gets the SigninDelegate for the app list. Owned by the AppListViewDelegate.
47 virtual SigninDelegate* GetSigninDelegate() = 0; 47 virtual SigninDelegate* GetSigninDelegate() = 0;
48 48
49 // Gets a path to a shortcut for the given app. Returns asynchronously as the 49 // Gets a path to a shortcut for the given app. Returns asynchronously as the
50 // shortcut may not exist yet. 50 // shortcut may not exist yet.
51 virtual void GetShortcutPathForApp( 51 virtual void GetShortcutPathForApp(
52 const std::string& app_id, 52 const std::string& app_id,
53 const base::Callback<void(const base::FilePath&)>& callback) = 0; 53 const base::Callback<void(const base::FilePath&)>& callback) = 0;
54 54
55 // Invoked when an AppListeItemModelView is activated by click or enter key.
56 virtual void ActivateAppListItem(AppListItemModel* item,
57 int event_flags) = 0;
58
59 // Invoked to start a new search. Delegate collects query input from 55 // Invoked to start a new search. Delegate collects query input from
60 // SearchBoxModel and populates SearchResults. Both models are sub models 56 // SearchBoxModel and populates SearchResults. Both models are sub models
61 // of AppListModel. 57 // of AppListModel.
62 virtual void StartSearch() = 0; 58 virtual void StartSearch() = 0;
63 59
64 // Invoked to stop the current search. 60 // Invoked to stop the current search.
65 virtual void StopSearch() = 0; 61 virtual void StopSearch() = 0;
66 62
67 // Invoked to open the search result. 63 // Invoked to open the search result.
68 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0; 64 virtual void OpenSearchResult(SearchResult* result, int event_flags) = 0;
(...skipping 26 matching lines...) Expand all
95 // Shows the app list for the profile specified by |profile_path|. 91 // Shows the app list for the profile specified by |profile_path|.
96 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0; 92 virtual void ShowForProfileByPath(const base::FilePath& profile_path) = 0;
97 93
98 // Get the start page web contents. Owned by the AppListViewDelegate. 94 // Get the start page web contents. Owned by the AppListViewDelegate.
99 virtual content::WebContents* GetStartPageContents() = 0; 95 virtual content::WebContents* GetStartPageContents() = 0;
100 }; 96 };
101 97
102 } // namespace app_list 98 } // namespace app_list
103 99
104 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_ 100 #endif // UI_APP_LIST_APP_LIST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_item_model.cc ('k') | ui/app_list/cocoa/apps_grid_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698