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

Side by Side Diff: ash/shell/app_list.cc

Issue 183853011: Move TrimWhitespace to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | base/command_line.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 6
7 #include "ash/session_state_delegate.h" 7 #include "ash/session_state_delegate.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "ash/shell/example_factory.h" 9 #include "ash/shell/example_factory.h"
10 #include "ash/shell/toplevel_window.h" 10 #include "ash/shell/toplevel_window.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 virtual base::TimeDelta GetAutoLaunchTimeout() OVERRIDE { 281 virtual base::TimeDelta GetAutoLaunchTimeout() OVERRIDE {
282 return base::TimeDelta(); 282 return base::TimeDelta();
283 } 283 }
284 284
285 virtual void AutoLaunchCanceled() OVERRIDE { 285 virtual void AutoLaunchCanceled() OVERRIDE {
286 } 286 }
287 287
288 virtual void StartSearch() OVERRIDE { 288 virtual void StartSearch() OVERRIDE {
289 base::string16 query; 289 base::string16 query;
290 TrimWhitespace(model_->search_box()->text(), TRIM_ALL, &query); 290 base::TrimWhitespace(model_->search_box()->text(), base::TRIM_ALL, &query);
291 query = base::i18n::ToLower(query); 291 query = base::i18n::ToLower(query);
292 292
293 model_->results()->DeleteAll(); 293 model_->results()->DeleteAll();
294 if (query.empty()) 294 if (query.empty())
295 return; 295 return;
296 296
297 for (int i = 0; i < static_cast<int>(WindowTypeShelfItem::LAST_TYPE); ++i) { 297 for (int i = 0; i < static_cast<int>(WindowTypeShelfItem::LAST_TYPE); ++i) {
298 WindowTypeShelfItem::Type type = 298 WindowTypeShelfItem::Type type =
299 static_cast<WindowTypeShelfItem::Type>(i); 299 static_cast<WindowTypeShelfItem::Type>(i);
300 300
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 }; 366 };
367 367
368 } // namespace 368 } // namespace
369 369
370 app_list::AppListViewDelegate* CreateAppListViewDelegate() { 370 app_list::AppListViewDelegate* CreateAppListViewDelegate() {
371 return new ExampleAppListViewDelegate; 371 return new ExampleAppListViewDelegate;
372 } 372 }
373 373
374 } // namespace shell 374 } // namespace shell
375 } // namespace ash 375 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | base/command_line.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698