| Index: ui/app_list/search_result_view_delegate.h
|
| diff --git a/ui/app_list/search_result_view_delegate.h b/ui/app_list/search_result_view_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9b4b467c8fb90d807ad4d558488920b709b620a8
|
| --- /dev/null
|
| +++ b/ui/app_list/search_result_view_delegate.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_
|
| +#define UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_
|
| +
|
| +namespace ui {
|
| +class Event;
|
| +}
|
| +
|
| +namespace app_list {
|
| +
|
| +class SearchResultView;
|
| +
|
| +class SearchResultViewDelegate {
|
| + public:
|
| + // Called when the search result is activated.
|
| + virtual void SearchResultActivated(SearchResultView* view,
|
| + const ui::Event& event) = 0;
|
| +
|
| + // Called when one of the search result's optional action icons is activated.
|
| + // |action_index| contains the 0-based index of the action.
|
| + virtual void SearchResultActionActivated(SearchResultView* view,
|
| + int action_index,
|
| + const ui::Event& event) = 0;
|
| +
|
| + protected:
|
| + virtual ~SearchResultViewDelegate() {}
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // UI_APP_LIST_SEARCH_RESULT_VIEW_DELEGATE_H_
|
|
|