Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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); |
|
viettrungluu
2014/02/28 23:44:14
I suppose it'd be evil to omit the first base:: in
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |