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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h

Issue 2233123003: Fix many memory leaks in chrome/browser/ui/cocoa/omnibox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from rsesek. Created 4 years, 4 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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698