| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // nothing to do here. | 55 // nothing to do here. |
| 56 // | 56 // |
| 57 // deanm indicates that this is an anti-flicker optimization, | 57 // deanm indicates that this is an anti-flicker optimization, |
| 58 // which we probably cannot utilize (and may not need) so long as | 58 // which we probably cannot utilize (and may not need) so long as |
| 59 // we're using NSTableView to implement the popup contents. We | 59 // we're using NSTableView to implement the popup contents. We |
| 60 // may need to move away from NSTableView to implement hover, | 60 // may need to move away from NSTableView to implement hover, |
| 61 // though. | 61 // though. |
| 62 } | 62 } |
| 63 virtual void UpdatePopupAppearance(); | 63 virtual void UpdatePopupAppearance(); |
| 64 | 64 |
| 65 // Set |line| to be selected. |
| 66 void SetSelectedLine(size_t line); |
| 67 |
| 65 // This is only called by model in SetSelectedLine() after updating | 68 // This is only called by model in SetSelectedLine() after updating |
| 66 // everything. Popup should already be visible. | 69 // everything. Popup should already be visible. |
| 67 virtual void PaintUpdatesNow(); | 70 virtual void PaintUpdatesNow(); |
| 68 | 71 |
| 69 virtual void OnDragCanceled() {} | 72 virtual void OnDragCanceled() {} |
| 70 | 73 |
| 71 // Returns the popup's model. | 74 // Returns the popup's model. |
| 72 virtual AutocompletePopupModel* GetModel(); | 75 virtual AutocompletePopupModel* GetModel(); |
| 73 | 76 |
| 74 virtual int GetMaxYCoordinate(); | 77 virtual int GetMaxYCoordinate(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 NSTextField* field_; // owned by tab controller | 129 NSTextField* field_; // owned by tab controller |
| 127 | 130 |
| 128 // Child window containing a matrix which implements the popup. | 131 // Child window containing a matrix which implements the popup. |
| 129 scoped_nsobject<NSWindow> popup_; | 132 scoped_nsobject<NSWindow> popup_; |
| 130 NSRect targetPopupFrame_; | 133 NSRect targetPopupFrame_; |
| 131 | 134 |
| 132 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewMac); | 135 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewMac); |
| 133 }; | 136 }; |
| 134 | 137 |
| 135 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ | 138 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_VIEW_MAC_H_ |
| OLD | NEW |