Correct blacklist entry message
[chromium-blink-merge.git] / ui / app_list / views / search_result_actions_view.h
blob0aab694adb24d249893e55bb91b01ee466159bb6
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_RESULT_ACTIONS_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_H_
8 #include "base/basictypes.h"
9 #include "ui/app_list/search_result.h"
10 #include "ui/views/controls/button/button.h"
11 #include "ui/views/view.h"
13 namespace app_list {
15 class SearchResultActionsViewDelegate;
17 // SearchResultActionsView displays a SearchResult::Actions in a button
18 // strip. Each action is presented as a button and horizontally laid out.
19 class SearchResultActionsView : public views::View,
20 public views::ButtonListener {
21 public:
22 explicit SearchResultActionsView(SearchResultActionsViewDelegate* delegate);
23 virtual ~SearchResultActionsView();
25 void SetActions(const SearchResult::Actions& actions);
27 private:
28 void CreateImageButton(const SearchResult::Action& action);
29 void CreateBlueButton(const SearchResult::Action& action);
31 // views::ButtonListener overrides:
32 virtual void ButtonPressed(views::Button* sender,
33 const ui::Event& event) OVERRIDE;
35 SearchResultActionsViewDelegate* delegate_; // Not owned.
37 DISALLOW_COPY_AND_ASSIGN(SearchResultActionsView);
40 } // namespace app_list
42 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_ACTIONS_VIEW_H_