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 bool ShouldCenterWindow() const override; | |
87 void AddObserver(AppListViewDelegateObserver* observer) override; | 86 void AddObserver(AppListViewDelegateObserver* observer) override; |
88 void RemoveObserver(AppListViewDelegateObserver* observer) override; | 87 void RemoveObserver(AppListViewDelegateObserver* observer) override; |
89 | 88 |
90 // Do a bulk replacement of the items in the model. | 89 // Do a bulk replacement of the items in the model. |
91 void ReplaceTestModel(int item_count); | 90 void ReplaceTestModel(int item_count); |
92 | 91 |
93 AppListTestModel* ReleaseTestModel() { return model_.release(); } | 92 AppListTestModel* ReleaseTestModel() { return model_.release(); } |
94 AppListTestModel* GetTestModel() { return model_.get(); } | 93 AppListTestModel* GetTestModel() { return model_.get(); } |
95 | 94 |
96 private: | 95 private: |
97 int dismiss_count_; | 96 int dismiss_count_; |
98 int stop_speech_recognition_count_; | 97 int stop_speech_recognition_count_; |
99 int open_search_result_count_; | 98 int open_search_result_count_; |
100 int next_profile_app_count_; | 99 int next_profile_app_count_; |
101 std::map<size_t, int> open_search_result_counts_; | 100 std::map<size_t, int> open_search_result_counts_; |
102 Users users_; | 101 Users users_; |
103 std::unique_ptr<AppListTestModel> model_; | 102 std::unique_ptr<AppListTestModel> model_; |
104 base::ObserverList<AppListViewDelegateObserver> observers_; | 103 base::ObserverList<AppListViewDelegateObserver> observers_; |
105 SpeechUIModel speech_ui_; | 104 SpeechUIModel speech_ui_; |
106 base::TimeDelta auto_launch_timeout_; | 105 base::TimeDelta auto_launch_timeout_; |
107 | 106 |
108 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); |
109 }; | 108 }; |
110 | 109 |
111 } // namespace test | 110 } // namespace test |
112 } // namespace app_list | 111 } // namespace app_list |
113 | 112 |
114 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ | 113 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ |
OLD | NEW |