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

Side by Side Diff: ui/app_list/cocoa/apps_pagination_model_observer.h

Issue 19460003: One-click install for the OSX App Launcher Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaner, more future-proof Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_COCOA_APPS_PAGINATION_MODEL_OBSERVER_H_ 5 #ifndef UI_APP_LIST_COCOA_APPS_PAGINATION_MODEL_OBSERVER_H_
6 #define UI_APP_LIST_COCOA_APPS_PAGINATION_MODEL_OBSERVER_H_ 6 #define UI_APP_LIST_COCOA_APPS_PAGINATION_MODEL_OBSERVER_H_
7 7
8 // Observer protocol for page changes. Compare with 8 // Observer protocol for page changes. Compare with
9 // app_list::PaginationModelObserver. 9 // app_list::PaginationModelObserver.
10 @protocol AppsPaginationModelObserver 10 @protocol AppsPaginationModelObserver
11 11
12 // Invoked when the total number of pages has changed. 12 // Invoked when the total number of pages has changed.
13 - (void)totalPagesChanged; 13 - (void)totalPagesChanged;
14 14
15 // Invoked when the selected page index is changed. 15 // Invoked when the selected page index is changed.
16 - (void)selectedPageChanged:(int)newSelected; 16 - (void)selectedPageChanged:(int)newSelected;
17 17
18 // Invoked when the portion of pages that are visible have changed. 18 // Invoked when the portion of pages that are visible have changed.
19 - (void)pageVisibilityChanged; 19 - (void)pageVisibilityChanged;
20 20
21 // Return a pager segment at |locationInWindow| or -1 if there is none. 21 // Return a pager segment at |locationInWindow| or -1 if there is none.
22 - (NSInteger)pagerSegmentAtLocation:(NSPoint)locationInWindow; 22 - (NSInteger)pagerSegmentAtLocation:(NSPoint)locationInWindow;
23 23
24 // If there is a search result, clear it to ensure the grid is visible.
25 - (void)ensureAppsPagesVisible;
26
24 @end 27 @end
25 28
26 #endif // UI_APP_LIST_COCOA_APPS_PAGINATION_MODEL_OBSERVER_H_ 29 #endif // UI_APP_LIST_COCOA_APPS_PAGINATION_MODEL_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/apps_grid_view_item.mm ('k') | ui/app_list/cocoa/apps_search_results_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698