| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // allows existing animations to continue if the size doesn't | 128 // allows existing animations to continue if the size doesn't |
| 129 // change. | 129 // change. |
| 130 void PositionPopup(const CGFloat matrixHeight); | 130 void PositionPopup(const CGFloat matrixHeight); |
| 131 | 131 |
| 132 // Returns the NSImage that should be used as an icon for the given match. | 132 // Returns the NSImage that should be used as an icon for the given match. |
| 133 NSImage* ImageForMatch(const AutocompleteMatch& match); | 133 NSImage* ImageForMatch(const AutocompleteMatch& match); |
| 134 | 134 |
| 135 // Returns whether or not to show the instant opt-in prompt. | 135 // Returns whether or not to show the instant opt-in prompt. |
| 136 bool ShouldShowInstantOptIn(); | 136 bool ShouldShowInstantOptIn(); |
| 137 | 137 |
| 138 OmniboxViewMac* omnibox_view_; |
| 138 scoped_ptr<AutocompletePopupModel> model_; | 139 scoped_ptr<AutocompletePopupModel> model_; |
| 139 OmniboxViewMac* omnibox_view_; | 140 Profile* profile_; |
| 140 NSTextField* field_; // owned by tab controller | 141 NSTextField* field_; // owned by tab controller |
| 141 | 142 |
| 142 // Child window containing a matrix which implements the popup. | 143 // Child window containing a matrix which implements the popup. |
| 143 scoped_nsobject<NSWindow> popup_; | 144 scoped_nsobject<NSWindow> popup_; |
| 144 scoped_nsobject<InstantOptInController> opt_in_controller_; | 145 scoped_nsobject<InstantOptInController> opt_in_controller_; |
| 145 NSRect targetPopupFrame_; | 146 NSRect targetPopupFrame_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewMac); | 148 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewMac); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ | 151 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ |
| OLD | NEW |