search_result_actions_view_delegate.h 876 B

12345678910111213141516171819202122232425262728
  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.
  4. #ifndef ASH_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_DELEGATE_H_
  5. #define ASH_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_DELEGATE_H_
  6. #include <stddef.h>
  7. namespace ash {
  8. class SearchResultActionsViewDelegate {
  9. public:
  10. // Invoked when the action button represent the action at |index| is pressed
  11. // in SearchResultActionsView.
  12. virtual void OnSearchResultActionActivated(size_t index) = 0;
  13. // Returns true if the associated search result is hovered by mouse, or
  14. // or selected by keyboard.
  15. virtual bool IsSearchResultHoveredOrSelected() = 0;
  16. protected:
  17. virtual ~SearchResultActionsViewDelegate() {}
  18. };
  19. } // namespace ash
  20. #endif // ASH_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_DELEGATE_H_