| 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 #ifndef UI_APP_LIST_SEARCH_BOX_VIEW_H_ | 5 #ifndef UI_APP_LIST_SEARCH_BOX_VIEW_H_ |
| 6 #define UI_APP_LIST_SEARCH_BOX_VIEW_H_ | 6 #define UI_APP_LIST_SEARCH_BOX_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/app_list/search_box_model_observer.h" | 10 #include "ui/app_list/search_box_model_observer.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Updates model text and selection model with current Textfield info. | 49 // Updates model text and selection model with current Textfield info. |
| 50 void UpdateModel(); | 50 void UpdateModel(); |
| 51 | 51 |
| 52 // Fires query change notification. | 52 // Fires query change notification. |
| 53 void NotifyQueryChanged(); | 53 void NotifyQueryChanged(); |
| 54 | 54 |
| 55 // Overridden from views::TextfieldController: | 55 // Overridden from views::TextfieldController: |
| 56 virtual void ContentsChanged(views::Textfield* sender, | 56 virtual void ContentsChanged(views::Textfield* sender, |
| 57 const string16& new_contents) OVERRIDE; | 57 const string16& new_contents) OVERRIDE; |
| 58 virtual bool HandleKeyEvent(views::Textfield* sender, | 58 virtual bool HandleKeyEvent(views::Textfield* sender, |
| 59 const views::KeyEvent& key_event) OVERRIDE; | 59 const ui::KeyEvent& key_event) OVERRIDE; |
| 60 | 60 |
| 61 // Overridden from SearchBoxModelObserver: | 61 // Overridden from SearchBoxModelObserver: |
| 62 virtual void IconChanged() OVERRIDE; | 62 virtual void IconChanged() OVERRIDE; |
| 63 virtual void HintTextChanged() OVERRIDE; | 63 virtual void HintTextChanged() OVERRIDE; |
| 64 virtual void SelectionModelChanged() OVERRIDE; | 64 virtual void SelectionModelChanged() OVERRIDE; |
| 65 virtual void TextChanged() OVERRIDE; | 65 virtual void TextChanged() OVERRIDE; |
| 66 | 66 |
| 67 SearchBoxViewDelegate* delegate_; // Not owned. | 67 SearchBoxViewDelegate* delegate_; // Not owned. |
| 68 SearchBoxModel* model_; // Owned by AppListModel. | 68 SearchBoxModel* model_; // Owned by AppListModel. |
| 69 | 69 |
| 70 views::ImageView* icon_view_; // Owned by views hierarchy. | 70 views::ImageView* icon_view_; // Owned by views hierarchy. |
| 71 views::Textfield* search_box_; // Owned by views hierarchy. | 71 views::Textfield* search_box_; // Owned by views hierarchy. |
| 72 views::View* contents_view_; // Owned by views hierarchy. | 72 views::View* contents_view_; // Owned by views hierarchy. |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); | 74 DISALLOW_COPY_AND_ASSIGN(SearchBoxView); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace app_list | 77 } // namespace app_list |
| 78 | 78 |
| 79 #endif // UI_APP_LIST_SEARCH_BOX_VIEW_H_ | 79 #endif // UI_APP_LIST_SEARCH_BOX_VIEW_H_ |
| 80 | 80 |
| OLD | NEW |