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

Side by Side Diff: ui/app_list/test/app_list_test_model.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
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_MODEL_H_ 5 #ifndef UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_
6 #define UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_ 6 #define UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/app_list/app_list_model.h" 10 #include "ui/app_list/app_list_model.h"
(...skipping 24 matching lines...) Expand all
35 // Add an item with arbitrary |title| and |full_name| to the model. 35 // Add an item with arbitrary |title| and |full_name| to the model.
36 void AddItem(const std::string& title, const std::string& full_name); 36 void AddItem(const std::string& title, const std::string& full_name);
37 37
38 // Add an item with arbitrary |title| to the model. This is a convenience 38 // Add an item with arbitrary |title| to the model. This is a convenience
39 // version which will use the title for the full_name. 39 // version which will use the title for the full_name.
40 void AddItem(const std::string& title); 40 void AddItem(const std::string& title);
41 41
42 // Call SetHighlighted on the specified item. 42 // Call SetHighlighted on the specified item.
43 void HighlightItemAt(int index); 43 void HighlightItemAt(int index);
44 44
45 int activate_count() { return activate_count_; }
46 AppListItemModel* last_activated() { return last_activated_; }
47
45 private: 48 private:
49 class AppListTestItemModel;
50
51 void ItemActivated(AppListTestItemModel* item);
52
53 int activate_count_;
54 AppListItemModel* last_activated_;
55
46 DISALLOW_COPY_AND_ASSIGN(AppListTestModel); 56 DISALLOW_COPY_AND_ASSIGN(AppListTestModel);
47 }; 57 };
48 58
49 } // namespace test 59 } // namespace test
50 } // namespace app_list 60 } // namespace app_list
51 61
52 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_ 62 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/apps_grid_controller_unittest.mm ('k') | ui/app_list/test/app_list_test_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698