Update V8 to version 4.5.98.
[chromium-blink-merge.git] / ui / app_list / views / search_box_view_delegate.h
blobe0e27c525f52f09b81ce0973c59dc25e22c65af4
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
3 // found in the LICENSE file.
5 #ifndef UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_
8 #include "ui/app_list/app_list_export.h"
10 namespace app_list {
12 class SearchBoxView;
14 class APP_LIST_EXPORT SearchBoxViewDelegate {
15 public:
16 // Invoked when query text has changed by the user.
17 virtual void QueryChanged(SearchBoxView* sender) = 0;
19 // Invoked when the back button has been pressed.
20 virtual void BackButtonPressed() = 0;
22 // Selects first item or clears selection from search list.
23 virtual void SetSearchResultSelection(bool select) = 0;
25 protected:
26 virtual ~SearchBoxViewDelegate() {}
29 } // namespace app_list
31 #endif // UI_APP_LIST_VIEWS_SEARCH_BOX_VIEW_DELEGATE_H_