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

Side by Side Diff: ui/app_list/test/app_list_test_model.h

Issue 23709003: Display an app's short name in the app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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
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 11 matching lines...) Expand all
22 22
23 // Populate the model with |n| items titled "Item #". 23 // Populate the model with |n| items titled "Item #".
24 void PopulateApps(int n); 24 void PopulateApps(int n);
25 25
26 // Populate the model with an item titled "Item |id|". 26 // Populate the model with an item titled "Item |id|".
27 void PopulateAppWithId(int id); 27 void PopulateAppWithId(int id);
28 28
29 // Get a string of all apps in |model| joined with ','. 29 // Get a string of all apps in |model| joined with ','.
30 std::string GetModelContent(); 30 std::string GetModelContent();
31 31
32 AppListItemModel* CreateItem(const std::string& title); 32 AppListItemModel* CreateItem(const std::string& title,
33 const std::string& full_name);
33 void AddItem(const std::string& title); 34 void AddItem(const std::string& title);
benwells 2013/08/29 09:14:15 It isn't clear what this will use for full_name. P
tmdiep 2013/08/30 02:48:13 Done.
35 void AddItem(const std::string& title, const std::string& full_name);
34 36
35 // Call SetHighlighted on the specified item. 37 // Call SetHighlighted on the specified item.
36 void HighlightItemAt(int index); 38 void HighlightItemAt(int index);
37 39
38 private: 40 private:
39 DISALLOW_COPY_AND_ASSIGN(AppListTestModel); 41 DISALLOW_COPY_AND_ASSIGN(AppListTestModel);
40 }; 42 };
41 43
42 } // namespace test 44 } // namespace test
43 } // namespace app_list 45 } // namespace app_list
44 46
45 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_ 47 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698