blob: 31b3cf707c4497ccf48fcca67b8d3bb121c1b467 [file] [log] [blame]
// Copyright 2013 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 ASH_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_DELEGATE_H_
#define ASH_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_DELEGATE_H_
#include <stddef.h>
namespace app_list {
class SearchResultActionsViewDelegate {
public:
// Invoked when the action button represent the action at |index| is pressed
// in SearchResultActionsView.
virtual void OnSearchResultActionActivated(size_t index, int event_flags) = 0;
// Returns true if the associated search result is hovered by mouse, or
// or selected by keyboard.
virtual bool IsSearchResultHoveredOrSelected() = 0;
protected:
virtual ~SearchResultActionsViewDelegate() {}
};
} // namespace app_list
#endif // ASH_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_DELEGATE_H_