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

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

Issue 2865553002: Naming more views and windows to simplify debugging. (Closed)
Patch Set: Created 3 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 (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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 // 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
61 // container. 61 // container.
62 virtual int GetYSize() = 0; 62 virtual int GetYSize() = 0;
63 63
64 // Batching method that actually performs the update and updates layout. 64 // Batching method that actually performs the update and updates layout.
65 void Update(); 65 void Update();
66 66
67 // Returns whether an update is currently scheduled for this container. 67 // Returns whether an update is currently scheduled for this container.
68 bool UpdateScheduled(); 68 bool UpdateScheduled();
69 69
70 // Overridden from views::View:
71 const char* GetClassName() const override;
72
70 // Overridden from ui::ListModelObserver: 73 // Overridden from ui::ListModelObserver:
71 void ListItemsAdded(size_t start, size_t count) override; 74 void ListItemsAdded(size_t start, size_t count) override;
72 void ListItemsRemoved(size_t start, size_t count) override; 75 void ListItemsRemoved(size_t start, size_t count) override;
73 void ListItemMoved(size_t index, size_t target_index) override; 76 void ListItemMoved(size_t index, size_t target_index) override;
74 void ListItemsChanged(size_t start, size_t count) override; 77 void ListItemsChanged(size_t start, size_t count) override;
75 78
76 // Updates the container for being selected. |from_bottom| is true if the view 79 // Updates the container for being selected. |from_bottom| is true if the view
77 // was entered into from a selected view below it; false if entered into from 80 // was entered into from a selected view below it; false if entered into from
78 // above. |directional_movement| is true if the navigation was caused by 81 // above. |directional_movement| is true if the navigation was caused by
79 // directional controls (eg, arrow keys), as opposed to linear controls (eg, 82 // directional controls (eg, arrow keys), as opposed to linear controls (eg,
(...skipping 23 matching lines...) Expand all
103 106
104 // The factory that consolidates multiple Update calls into one. 107 // The factory that consolidates multiple Update calls into one.
105 base::WeakPtrFactory<SearchResultContainerView> update_factory_; 108 base::WeakPtrFactory<SearchResultContainerView> update_factory_;
106 109
107 DISALLOW_COPY_AND_ASSIGN(SearchResultContainerView); 110 DISALLOW_COPY_AND_ASSIGN(SearchResultContainerView);
108 }; 111 };
109 112
110 } // namespace app_list 113 } // namespace app_list
111 114
112 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_ 115 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_CONTAINER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698