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/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 "ui/app_list/search_box_model.h" | 9 #include "ui/app_list/search_box_model.h" |
10 #include "ui/app_list/search_box_view_delegate.h" | 10 #include "ui/app_list/search_box_view_delegate.h" |
11 #include "ui/base/events/event.h" | 11 #include "ui/base/events/event.h" |
12 #include "ui/base/resource/resource_bundle.h" | 12 #include "ui/base/resource/resource_bundle.h" |
13 #include "ui/views/controls/image_view.h" | 13 #include "ui/views/controls/image_view.h" |
14 #include "ui/views/controls/textfield/textfield.h" | 14 #include "ui/views/controls/textfield/textfield.h" |
15 | 15 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 void SearchBoxView::SelectionModelChanged() { | 145 void SearchBoxView::SelectionModelChanged() { |
146 search_box_->SelectSelectionModel(model_->selection_model()); | 146 search_box_->SelectSelectionModel(model_->selection_model()); |
147 } | 147 } |
148 | 148 |
149 void SearchBoxView::TextChanged() { | 149 void SearchBoxView::TextChanged() { |
150 search_box_->SetText(model_->text()); | 150 search_box_->SetText(model_->text()); |
151 } | 151 } |
152 | 152 |
153 } // namespace app_list | 153 } // namespace app_list |
154 | 154 |
OLD | NEW |