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

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

Issue 2613993002: Revert "Fix the Crash in the launcher's start page on Chrome OS." (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | ui/app_list/views/start_page_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 (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_CONTAINER_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 30 matching lines...) Expand all
41 41
42 void ClearSelectedIndex(); 42 void ClearSelectedIndex();
43 43
44 // The currently selected index. Returns -1 on no selection. 44 // The currently selected index. Returns -1 on no selection.
45 int selected_index() const { return selected_index_; } 45 int selected_index() const { return selected_index_; }
46 46
47 // Returns whether |index| is a valid index for selection. 47 // Returns whether |index| is a valid index for selection.
48 bool IsValidSelectionIndex(int index) const; 48 bool IsValidSelectionIndex(int index) const;
49 49
50 int num_results() const { return num_results_; } 50 int num_results() const { return num_results_; }
51 void set_num_results(int num_results) { num_results_ = num_results; }
52 51
53 void set_container_score(double score) { container_score_ = score; } 52 void set_container_score(double score) { container_score_ = score; }
54 double container_score() const { return container_score_; } 53 double container_score() const { return container_score_; }
55 54
56 // Updates the distance_from_origin() properties of the results in this 55 // Updates the distance_from_origin() properties of the results in this
57 // container. |y_index| is the absolute y-index of the first result of this 56 // container. |y_index| is the absolute y-index of the first result of this
58 // container (counting from the top of the app list). 57 // container (counting from the top of the app list).
59 virtual void NotifyFirstResultYIndex(int y_index) = 0; 58 virtual void NotifyFirstResultYIndex(int y_index) = 0;
60 59
61 // Gets the number of down keystrokes from the beginning to the end of this 60 // Gets the number of down keystrokes from the beginning to the end of this
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 103
105 // The factory that consolidates multiple Update calls into one. 104 // The factory that consolidates multiple Update calls into one.
106 base::WeakPtrFactory<SearchResultContainerView> update_factory_; 105 base::WeakPtrFactory<SearchResultContainerView> update_factory_;
107 106
108 DISALLOW_COPY_AND_ASSIGN(SearchResultContainerView); 107 DISALLOW_COPY_AND_ASSIGN(SearchResultContainerView);
109 }; 108 };
110 109
111 } // namespace app_list 110 } // namespace app_list
112 111
113 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_ 112 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/views/start_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698