| OLD | NEW |
| 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 CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_MATRIX_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_MATRIX_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_MATRIX_H_ | 6 #define CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_MATRIX_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| 11 #import "ui/base/cocoa/tracking_area.h" | 11 #import "ui/base/cocoa/tracking_area.h" |
| 12 #include "ui/base/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
| 13 | 13 |
| 14 class AutocompleteResult; | 14 class AutocompleteResult; |
| 15 @class OmniboxPopupCell; | 15 @class OmniboxPopupCell; |
| 16 @class OmniboxPopupMatrix; | 16 @class OmniboxPopupMatrix; |
| 17 class OmniboxPopupViewMac; | 17 class OmniboxPopupViewMac; |
| 18 | 18 |
| 19 @interface OmniboxPopupTableController | 19 @interface OmniboxPopupTableController |
| 20 : NSViewController<NSTableViewDelegate, NSTableViewDataSource> { | 20 : NSObject<NSTableViewDelegate, NSTableViewDataSource> { |
| 21 @private | 21 @private |
| 22 base::scoped_nsobject<NSArray> array_; | 22 base::scoped_nsobject<NSArray> array_; |
| 23 NSInteger hoveredIndex_; | 23 NSInteger hoveredIndex_; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // Setup the information used by the NSTableView data source. | 26 // Setup the information used by the NSTableView data source. |
| 27 - (instancetype)initWithMatchResults:(const AutocompleteResult&)result | 27 - (instancetype)initWithMatchResults:(const AutocompleteResult&)result |
| 28 tableView:(OmniboxPopupMatrix*)tableView | 28 tableView:(OmniboxPopupMatrix*)tableView |
| 29 popupView:(const OmniboxPopupViewMac&)popupView | 29 popupView:(const OmniboxPopupViewMac&)popupView |
| 30 answerImage:(NSImage*)answerImage; | 30 answerImage:(NSImage*)answerImage; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Move the selection to |rowIndex|. | 95 // Move the selection to |rowIndex|. |
| 96 - (void)selectRowIndex:(NSInteger)rowIndex; | 96 - (void)selectRowIndex:(NSInteger)rowIndex; |
| 97 | 97 |
| 98 // Setup the NSTableView data source. | 98 // Setup the NSTableView data source. |
| 99 - (void)setController:(OmniboxPopupTableController*)controller; | 99 - (void)setController:(OmniboxPopupTableController*)controller; |
| 100 | 100 |
| 101 @end | 101 @end |
| 102 | 102 |
| 103 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_MATRIX_H_ | 103 #endif // CHROME_BROWSER_UI_COCOA_OMNIBOX_OMNIBOX_POPUP_MATRIX_H_ |
| OLD | NEW |