Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(875)

Side by Side Diff: ui/app_list/views/search_result_tile_item_view.h

Issue 1132943004: Add Apps.AppListSearchResultDistanceFromOrigin UMA stat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_query_length_stat
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
7 7
8 #include "ui/app_list/search_result_observer.h" 8 #include "ui/app_list/search_result_observer.h"
9 #include "ui/app_list/views/tile_item_view.h" 9 #include "ui/app_list/views/tile_item_view.h"
10 #include "ui/views/context_menu_controller.h" 10 #include "ui/views/context_menu_controller.h"
(...skipping 11 matching lines...) Expand all
22 // A TileItemView that displays a search result. 22 // A TileItemView that displays a search result.
23 class APP_LIST_EXPORT SearchResultTileItemView 23 class APP_LIST_EXPORT SearchResultTileItemView
24 : public TileItemView, 24 : public TileItemView,
25 public views::ContextMenuController, 25 public views::ContextMenuController,
26 public SearchResultObserver { 26 public SearchResultObserver {
27 public: 27 public:
28 explicit SearchResultTileItemView(SearchResultContainerView* result_container, 28 explicit SearchResultTileItemView(SearchResultContainerView* result_container,
29 AppListViewDelegate* view_delegate); 29 AppListViewDelegate* view_delegate);
30 ~SearchResultTileItemView() override; 30 ~SearchResultTileItemView() override;
31 31
32 SearchResult* result() { return item_; }
32 void SetSearchResult(SearchResult* item); 33 void SetSearchResult(SearchResult* item);
33 34
34 // Overridden from TileItemView: 35 // Overridden from TileItemView:
35 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 36 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
36 bool OnKeyPressed(const ui::KeyEvent& event) override; 37 bool OnKeyPressed(const ui::KeyEvent& event) override;
37 38
38 // Overridden from SearchResultObserver: 39 // Overridden from SearchResultObserver:
39 void OnIconChanged() override; 40 void OnIconChanged() override;
40 void OnResultDestroying() override; 41 void OnResultDestroying() override;
41 42
(...skipping 11 matching lines...) Expand all
53 AppListViewDelegate* view_delegate_; 54 AppListViewDelegate* view_delegate_;
54 55
55 scoped_ptr<views::MenuRunner> context_menu_runner_; 56 scoped_ptr<views::MenuRunner> context_menu_runner_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); 58 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView);
58 }; 59 };
59 60
60 } // namespace app_list 61 } // namespace app_list
61 62
62 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ 63 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698