| 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 "ui/app_list/views/search_box_view.h" | 5 #include "ui/app_list/views/search_box_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "grit/ui_resources.h" | 9 #include "grit/ui_resources.h" |
| 10 #include "ui/app_list/app_list_model.h" | 10 #include "ui/app_list/app_list_model.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 void SearchBoxView::HintTextChanged() { | 175 void SearchBoxView::HintTextChanged() { |
| 176 search_box_->set_placeholder_text(model_->search_box()->hint_text()); | 176 search_box_->set_placeholder_text(model_->search_box()->hint_text()); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void SearchBoxView::SelectionModelChanged() { | 179 void SearchBoxView::SelectionModelChanged() { |
| 180 search_box_->SelectSelectionModel(model_->search_box()->selection_model()); | 180 search_box_->SelectSelectionModel(model_->search_box()->selection_model()); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void SearchBoxView::TextChanged() { | 183 void SearchBoxView::TextChanged() { |
| 184 search_box_->SetText(model_->search_box()->text()); | 184 search_box_->SetText(model_->search_box()->text()); |
| 185 NotifyQueryChanged(); |
| 185 } | 186 } |
| 186 | 187 |
| 187 } // namespace app_list | 188 } // namespace app_list |
| OLD | NEW |