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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; | 69 virtual gfx::ImageSkia GetWindowIcon() OVERRIDE; |
70 virtual void OpenSettings() OVERRIDE {} | 70 virtual void OpenSettings() OVERRIDE {} |
71 virtual void OpenHelp() OVERRIDE {} | 71 virtual void OpenHelp() OVERRIDE {} |
72 virtual void OpenFeedback() OVERRIDE {} | 72 virtual void OpenFeedback() OVERRIDE {} |
73 virtual void ToggleSpeechRecognition() OVERRIDE {} | 73 virtual void ToggleSpeechRecognition() OVERRIDE {} |
74 virtual void ShowForProfileByPath( | 74 virtual void ShowForProfileByPath( |
75 const base::FilePath& profile_path) OVERRIDE {} | 75 const base::FilePath& profile_path) OVERRIDE {} |
76 virtual content::WebContents* GetStartPageContents() OVERRIDE; | 76 virtual content::WebContents* GetStartPageContents() OVERRIDE; |
77 virtual content::WebContents* GetSpeechRecognitionContents() OVERRIDE; | 77 virtual content::WebContents* GetSpeechRecognitionContents() OVERRIDE; |
78 virtual const Users& GetUsers() const OVERRIDE; | 78 virtual const Users& GetUsers() const OVERRIDE; |
79 virtual bool ShouldCenterWindow() const OVERRIDE; | |
80 virtual void AddObserver(AppListViewDelegateObserver* observer) OVERRIDE; | 79 virtual void AddObserver(AppListViewDelegateObserver* observer) OVERRIDE; |
81 virtual void RemoveObserver(AppListViewDelegateObserver* observer) OVERRIDE; | 80 virtual void RemoveObserver(AppListViewDelegateObserver* observer) OVERRIDE; |
82 | 81 |
83 // Do a bulk replacement of the items in the model. | 82 // Do a bulk replacement of the items in the model. |
84 void ReplaceTestModel(int item_count); | 83 void ReplaceTestModel(int item_count); |
85 | 84 |
86 AppListTestModel* ReleaseTestModel() { return model_.release(); } | 85 AppListTestModel* ReleaseTestModel() { return model_.release(); } |
87 AppListTestModel* GetTestModel() { return model_.get(); } | 86 AppListTestModel* GetTestModel() { return model_.get(); } |
88 | 87 |
89 private: | 88 private: |
90 int dismiss_count_; | 89 int dismiss_count_; |
91 int open_search_result_count_; | 90 int open_search_result_count_; |
92 std::map<size_t, int> open_search_result_counts_; | 91 std::map<size_t, int> open_search_result_counts_; |
93 Users users_; | 92 Users users_; |
94 scoped_ptr<TestSigninDelegate> test_signin_delegate_; | 93 scoped_ptr<TestSigninDelegate> test_signin_delegate_; |
95 scoped_ptr<AppListTestModel> model_; | 94 scoped_ptr<AppListTestModel> model_; |
96 ObserverList<AppListViewDelegateObserver> observers_; | 95 ObserverList<AppListViewDelegateObserver> observers_; |
97 SpeechUIModel speech_ui_; | 96 SpeechUIModel speech_ui_; |
98 base::TimeDelta auto_launch_timeout_; | 97 base::TimeDelta auto_launch_timeout_; |
99 | 98 |
100 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); | 99 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); |
101 }; | 100 }; |
102 | 101 |
103 } // namespace test | 102 } // namespace test |
104 } // namespace app_list | 103 } // namespace app_list |
105 | 104 |
106 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ | 105 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ |
OLD | NEW |