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

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

Issue 266193009: Revert of Use experimental app list position whenever virtual keyboard is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_main_view.h » ('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 #include "ui/app_list/test/app_list_test_view_delegate.h" 5 #include "ui/app_list/test/app_list_test_view_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 content::WebContents* AppListTestViewDelegate::GetSpeechRecognitionContents() { 124 content::WebContents* AppListTestViewDelegate::GetSpeechRecognitionContents() {
125 return NULL; 125 return NULL;
126 } 126 }
127 127
128 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const { 128 const AppListViewDelegate::Users& AppListTestViewDelegate::GetUsers() const {
129 return users_; 129 return users_;
130 } 130 }
131 131
132 bool AppListTestViewDelegate::ShouldCenterWindow() const {
133 return false;
134 }
135
136 void AppListTestViewDelegate::ReplaceTestModel(int item_count) { 132 void AppListTestViewDelegate::ReplaceTestModel(int item_count) {
137 model_.reset(new AppListTestModel); 133 model_.reset(new AppListTestModel);
138 model_->PopulateApps(item_count); 134 model_->PopulateApps(item_count);
139 } 135 }
140 136
141 void AppListTestViewDelegate::AddObserver( 137 void AppListTestViewDelegate::AddObserver(
142 AppListViewDelegateObserver* observer) { 138 AppListViewDelegateObserver* observer) {
143 observers_.AddObserver(observer); 139 observers_.AddObserver(observer);
144 } 140 }
145 141
146 void AppListTestViewDelegate::RemoveObserver( 142 void AppListTestViewDelegate::RemoveObserver(
147 AppListViewDelegateObserver* observer) { 143 AppListViewDelegateObserver* observer) {
148 observers_.RemoveObserver(observer); 144 observers_.RemoveObserver(observer);
149 } 145 }
150 146
151 } // namespace test 147 } // namespace test
152 } // namespace app_list 148 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_main_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698