| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_ |
| 6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/app_list/app_list_export.h" | 8 #include "ui/app_list/app_list_export.h" |
| 9 | 9 |
| 10 namespace app_list { | 10 namespace app_list { |
| 11 | 11 |
| 12 class SearchBoxView; | 12 class SearchBoxView; |
| 13 | 13 |
| 14 class APP_LIST_EXPORT SearchBoxViewDelegate { | 14 class APP_LIST_EXPORT SearchBoxViewDelegate { |
| 15 public: | 15 public: |
| 16 // Invoked when query text has changed by the user. | 16 // Invoked when query text has changed by the user. |
| 17 virtual void QueryChanged(SearchBoxView* sender) = 0; | 17 virtual void QueryChanged(SearchBoxView* sender) = 0; |
| 18 | 18 |
| 19 // Invoked when the view's visibility has been altered. |
| 20 virtual void SearchBoxVisibilityChanged(SearchBoxView* sender) = 0; |
| 21 |
| 19 protected: | 22 protected: |
| 20 virtual ~SearchBoxViewDelegate() {} | 23 virtual ~SearchBoxViewDelegate() {} |
| 21 }; | 24 }; |
| 22 | 25 |
| 23 } // namespace app_list | 26 } // namespace app_list |
| 24 | 27 |
| 25 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_ | 28 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_ |
| OLD | NEW |