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

Side by Side Diff: ui/app_list/test/app_list_test_view_delegate.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/apps_grid_view_delegate.h ('k') | ui/app_list/test/app_list_test_view_delegate.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_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ 5 #ifndef UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ 6 #define UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_
7 7
8 #include "base/callback_forward.h"
8 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
9 #include "ui/app_list/app_list_view_delegate.h" 10 #include "ui/app_list/app_list_view_delegate.h"
10 11
11 namespace app_list { 12 namespace app_list {
12 namespace test { 13 namespace test {
13 14
14 // A concrete AppListViewDelegate for unit tests. 15 // A concrete AppListViewDelegate for unit tests.
15 class AppListTestViewDelegate : public AppListViewDelegate { 16 class AppListTestViewDelegate : public AppListViewDelegate {
16 public: 17 public:
17 AppListTestViewDelegate(); 18 AppListTestViewDelegate();
18 virtual ~AppListTestViewDelegate(); 19 virtual ~AppListTestViewDelegate();
19 20
20 int activate_count() { return activate_count_; } 21 int activate_count() { return activate_count_; }
21 int dismiss_count() { return dismiss_count_; } 22 int dismiss_count() { return dismiss_count_; }
22 AppListItemModel* last_activated() { return last_activated_; } 23 AppListItemModel* last_activated() { return last_activated_; }
23 24
24 // AppListViewDelegate overrides: 25 // AppListViewDelegate overrides:
25 virtual void SetModel(AppListModel* model) OVERRIDE {} 26 virtual void SetModel(AppListModel* model) OVERRIDE {}
26 virtual SigninDelegate* GetSigninDelegate() OVERRIDE; 27 virtual SigninDelegate* GetSigninDelegate() OVERRIDE;
28 virtual void GetShortcutPathForApp(
29 const std::string& app_id,
30 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE;
27 virtual void ActivateAppListItem(AppListItemModel* item, 31 virtual void ActivateAppListItem(AppListItemModel* item,
28 int event_flags) OVERRIDE; 32 int event_flags) OVERRIDE;
29 virtual void StartSearch() OVERRIDE {} 33 virtual void StartSearch() OVERRIDE {}
30 virtual void StopSearch() OVERRIDE {} 34 virtual void StopSearch() OVERRIDE {}
31 virtual void OpenSearchResult(SearchResult* result, 35 virtual void OpenSearchResult(SearchResult* result,
32 int event_flags) OVERRIDE {} 36 int event_flags) OVERRIDE {}
33 virtual void InvokeSearchResultAction(SearchResult* result, 37 virtual void InvokeSearchResultAction(SearchResult* result,
34 int action_index, 38 int action_index,
35 int event_flags) OVERRIDE {} 39 int event_flags) OVERRIDE {}
36 virtual void Dismiss() OVERRIDE; 40 virtual void Dismiss() OVERRIDE;
37 virtual void ViewClosing() OVERRIDE {} 41 virtual void ViewClosing() OVERRIDE {}
38 virtual void ViewActivationChanged(bool active) OVERRIDE {} 42 virtual void ViewActivationChanged(bool active) OVERRIDE {}
39 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; 43 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE;
40 virtual base::string16 GetCurrentUserName() OVERRIDE; 44 virtual base::string16 GetCurrentUserName() OVERRIDE;
41 virtual base::string16 GetCurrentUserEmail() OVERRIDE; 45 virtual base::string16 GetCurrentUserEmail() OVERRIDE;
42 virtual void OpenSettings() OVERRIDE {} 46 virtual void OpenSettings() OVERRIDE {}
43 virtual void OpenHelp() OVERRIDE {} 47 virtual void OpenHelp() OVERRIDE {}
44 virtual void OpenFeedback() OVERRIDE {} 48 virtual void OpenFeedback() OVERRIDE {}
45 49
46 private: 50 private:
47 int activate_count_; 51 int activate_count_;
48 int dismiss_count_; 52 int dismiss_count_;
49 AppListItemModel* last_activated_; 53 AppListItemModel* last_activated_;
50 }; 54 };
51 55
52 } // namespace test 56 } // namespace test
53 } // namespace app_list 57 } // namespace app_list
54 58
55 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ 59 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/apps_grid_view_delegate.h ('k') | ui/app_list/test/app_list_test_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698