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

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

Issue 253983002: Use centered app list position whenever virtual keyboard is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ExampleAppListViewDelegate (caused tree to close). Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/app_list/app_list_view_delegate.h ('k') | ui/app_list/test/app_list_test_view_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
79 virtual void AddObserver(AppListViewDelegateObserver* observer) OVERRIDE; 80 virtual void AddObserver(AppListViewDelegateObserver* observer) OVERRIDE;
80 virtual void RemoveObserver(AppListViewDelegateObserver* observer) OVERRIDE; 81 virtual void RemoveObserver(AppListViewDelegateObserver* observer) OVERRIDE;
81 82
82 // Do a bulk replacement of the items in the model. 83 // Do a bulk replacement of the items in the model.
83 void ReplaceTestModel(int item_count); 84 void ReplaceTestModel(int item_count);
84 85
85 AppListTestModel* ReleaseTestModel() { return model_.release(); } 86 AppListTestModel* ReleaseTestModel() { return model_.release(); }
86 AppListTestModel* GetTestModel() { return model_.get(); } 87 AppListTestModel* GetTestModel() { return model_.get(); }
87 88
88 private: 89 private:
89 int dismiss_count_; 90 int dismiss_count_;
90 int open_search_result_count_; 91 int open_search_result_count_;
91 std::map<size_t, int> open_search_result_counts_; 92 std::map<size_t, int> open_search_result_counts_;
92 Users users_; 93 Users users_;
93 scoped_ptr<TestSigninDelegate> test_signin_delegate_; 94 scoped_ptr<TestSigninDelegate> test_signin_delegate_;
94 scoped_ptr<AppListTestModel> model_; 95 scoped_ptr<AppListTestModel> model_;
95 ObserverList<AppListViewDelegateObserver> observers_; 96 ObserverList<AppListViewDelegateObserver> observers_;
96 SpeechUIModel speech_ui_; 97 SpeechUIModel speech_ui_;
97 base::TimeDelta auto_launch_timeout_; 98 base::TimeDelta auto_launch_timeout_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate); 100 DISALLOW_COPY_AND_ASSIGN(AppListTestViewDelegate);
100 }; 101 };
101 102
102 } // namespace test 103 } // namespace test
103 } // namespace app_list 104 } // namespace app_list
104 105
105 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_ 106 #endif // UI_APP_LIST_TEST_APP_LIST_TEST_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_view_delegate.h ('k') | ui/app_list/test/app_list_test_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698