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

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

Issue 2127713005: Purge AppListMenu, and the app list profile switcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160707-Apps-RemoveSettings
Patch Set: Created 4 years, 5 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_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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool auto_launch, 65 bool auto_launch,
66 int event_flags) override; 66 int event_flags) override;
67 void InvokeSearchResultAction(SearchResult* result, 67 void InvokeSearchResultAction(SearchResult* result,
68 int action_index, 68 int action_index,
69 int event_flags) override {} 69 int event_flags) override {}
70 base::TimeDelta GetAutoLaunchTimeout() override; 70 base::TimeDelta GetAutoLaunchTimeout() override;
71 void AutoLaunchCanceled() override; 71 void AutoLaunchCanceled() override;
72 void ViewInitialized() override {} 72 void ViewInitialized() override {}
73 void Dismiss() override; 73 void Dismiss() override;
74 void ViewClosing() override {} 74 void ViewClosing() override {}
75 void OpenHelp() override {}
76 void OpenFeedback() override {}
77 void StartSpeechRecognition() override {} 75 void StartSpeechRecognition() override {}
78 void StopSpeechRecognition() override; 76 void StopSpeechRecognition() override;
79 void ShowForProfileByPath(const base::FilePath& profile_path) override {} 77 void ShowForProfileByPath(const base::FilePath& profile_path) override {}
80 #if defined(TOOLKIT_VIEWS) 78 #if defined(TOOLKIT_VIEWS)
81 views::View* CreateStartPageWebView(const gfx::Size& size) override; 79 views::View* CreateStartPageWebView(const gfx::Size& size) override;
82 std::vector<views::View*> CreateCustomPageWebViews( 80 std::vector<views::View*> CreateCustomPageWebViews(
83 const gfx::Size& size) override; 81 const gfx::Size& size) override;
84 void CustomLauncherPageAnimationChanged(double progress) override {} 82 void CustomLauncherPageAnimationChanged(double progress) override {}
85 void CustomLauncherPagePopSubpage() override {} 83 void CustomLauncherPagePopSubpage() override {}
86 #endif 84 #endif
87 bool IsSpeechRecognitionEnabled() override; 85 bool IsSpeechRecognitionEnabled() override;
88 const Users& GetUsers() const override; 86 const Users& GetUsers() const override;
89 bool ShouldCenterWindow() const override; 87 bool ShouldCenterWindow() const override;
90 void AddObserver(AppListViewDelegateObserver* observer) override;
91 void RemoveObserver(AppListViewDelegateObserver* observer) override;
92 88
93 // Do a bulk replacement of the items in the model. 89 // Do a bulk replacement of the items in the model.
94 void ReplaceTestModel(int item_count); 90 void ReplaceTestModel(int item_count);
95 91
96 AppListTestModel* ReleaseTestModel() { return model_.release(); } 92 AppListTestModel* ReleaseTestModel() { return model_.release(); }
97 AppListTestModel* GetTestModel() { return model_.get(); } 93 AppListTestModel* GetTestModel() { return model_.get(); }
98 94
99 private: 95 private:
100 int dismiss_count_; 96 int dismiss_count_;
101 int stop_speech_recognition_count_; 97 int stop_speech_recognition_count_;
102 int open_search_result_count_; 98 int open_search_result_count_;
103 int next_profile_app_count_; 99 int next_profile_app_count_;
104 std::map<size_t, int> open_search_result_counts_; 100 std::map<size_t, int> open_search_result_counts_;
105 Users users_; 101 Users users_;
106 std::unique_ptr<AppListTestModel> model_; 102 std::unique_ptr<AppListTestModel> model_;
107 base::ObserverList<AppListViewDelegateObserver> observers_;
108 SpeechUIModel speech_ui_; 103 SpeechUIModel speech_ui_;
109 base::TimeDelta auto_launch_timeout_; 104 base::TimeDelta auto_launch_timeout_;
110 105
111 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); 106 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate);
112 }; 107 };
113 108
114 } // namespace test 109 } // namespace test
115 } // namespace app_list 110 } // namespace app_list
116 111
117 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ 112 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698