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

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

Issue 2952823002: cros: Make SearchResultTileItemView layout per DisplayType customized (Closed)
Patch Set: nits Created 3 years, 6 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
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/views/search_result_tile_item_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/app_list/search_result_observer.h" 9 #include "ui/app_list/search_result_observer.h"
10 #include "ui/app_list/views/tile_item_view.h" 10 #include "ui/app_list/views/tile_item_view.h"
(...skipping 30 matching lines...) Expand all
41 void OnIconChanged() override; 41 void OnIconChanged() override;
42 void OnBadgeIconChanged() override; 42 void OnBadgeIconChanged() override;
43 void OnResultDestroying() override; 43 void OnResultDestroying() override;
44 44
45 // views::ContextMenuController overrides: 45 // views::ContextMenuController overrides:
46 void ShowContextMenuForView(views::View* source, 46 void ShowContextMenuForView(views::View* source,
47 const gfx::Point& point, 47 const gfx::Point& point,
48 ui::MenuSourceType source_type) override; 48 ui::MenuSourceType source_type) override;
49 49
50 private: 50 private:
51 // Overridden from views::View:
52 void Layout() override;
53 gfx::Size CalculatePreferredSize() const override;
54
51 SearchResultContainerView* result_container_; // Parent view 55 SearchResultContainerView* result_container_; // Parent view
52 56
53 // Owned by the model provided by the AppListViewDelegate. 57 // Owned by the model provided by the AppListViewDelegate.
54 SearchResult* item_; 58 SearchResult* item_;
55 59
56 AppListViewDelegate* view_delegate_; 60 AppListViewDelegate* view_delegate_;
57 61
62 const bool is_fullscreen_app_list_enabled_;
63
58 std::unique_ptr<views::MenuRunner> context_menu_runner_; 64 std::unique_ptr<views::MenuRunner> context_menu_runner_;
59 65
60 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); 66 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView);
61 }; 67 };
62 68
63 } // namespace app_list 69 } // namespace app_list
64 70
65 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ 71 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/views/search_result_tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698