OLD | NEW |
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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 void ShowForProfileByPath(const base::FilePath& profile_path) override {} | 76 void ShowForProfileByPath(const base::FilePath& profile_path) override {} |
77 #if defined(TOOLKIT_VIEWS) | 77 #if defined(TOOLKIT_VIEWS) |
78 views::View* CreateStartPageWebView(const gfx::Size& size) override; | 78 views::View* CreateStartPageWebView(const gfx::Size& size) override; |
79 std::vector<views::View*> CreateCustomPageWebViews( | 79 std::vector<views::View*> CreateCustomPageWebViews( |
80 const gfx::Size& size) override; | 80 const gfx::Size& size) override; |
81 void CustomLauncherPageAnimationChanged(double progress) override {} | 81 void CustomLauncherPageAnimationChanged(double progress) override {} |
82 void CustomLauncherPagePopSubpage() override {} | 82 void CustomLauncherPagePopSubpage() override {} |
83 #endif | 83 #endif |
84 bool IsSpeechRecognitionEnabled() override; | 84 bool IsSpeechRecognitionEnabled() override; |
85 const Users& GetUsers() const override; | 85 const Users& GetUsers() const override; |
86 void AddObserver(AppListViewDelegateObserver* observer) override; | |
87 void RemoveObserver(AppListViewDelegateObserver* observer) override; | |
88 | 86 |
89 // Do a bulk replacement of the items in the model. | 87 // Do a bulk replacement of the items in the model. |
90 void ReplaceTestModel(int item_count); | 88 void ReplaceTestModel(int item_count); |
91 | 89 |
92 AppListTestModel* ReleaseTestModel() { return model_.release(); } | 90 AppListTestModel* ReleaseTestModel() { return model_.release(); } |
93 AppListTestModel* GetTestModel() { return model_.get(); } | 91 AppListTestModel* GetTestModel() { return model_.get(); } |
94 | 92 |
95 private: | 93 private: |
96 int dismiss_count_; | 94 int dismiss_count_; |
97 int stop_speech_recognition_count_; | 95 int stop_speech_recognition_count_; |
98 int open_search_result_count_; | 96 int open_search_result_count_; |
99 int next_profile_app_count_; | 97 int next_profile_app_count_; |
100 std::map<size_t, int> open_search_result_counts_; | 98 std::map<size_t, int> open_search_result_counts_; |
101 Users users_; | 99 Users users_; |
102 std::unique_ptr<AppListTestModel> model_; | 100 std::unique_ptr<AppListTestModel> model_; |
103 base::ObserverList<AppListViewDelegateObserver> observers_; | |
104 SpeechUIModel speech_ui_; | 101 SpeechUIModel speech_ui_; |
105 base::TimeDelta auto_launch_timeout_; | 102 base::TimeDelta auto_launch_timeout_; |
106 | 103 |
107 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); | 104 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); |
108 }; | 105 }; |
109 | 106 |
110 } // namespace test | 107 } // namespace test |
111 } // namespace app_list | 108 } // namespace app_list |
112 | 109 |
113 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ | 110 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ |
OLD | NEW |