| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool IsStarEnabled() const; | 101 bool IsStarEnabled() const; |
| 102 | 102 |
| 103 // Get the point in window coordinates in the |decoration| at which the | 103 // Get the point in window coordinates in the |decoration| at which the |
| 104 // associate bubble aims. | 104 // associate bubble aims. |
| 105 NSPoint GetBubblePointForDecoration(LocationBarDecoration* decoration) const; | 105 NSPoint GetBubblePointForDecoration(LocationBarDecoration* decoration) const; |
| 106 | 106 |
| 107 // Get the point in window coordinates in the save credit card icon for the | 107 // Get the point in window coordinates in the save credit card icon for the |
| 108 // save credit card bubble to aim at. | 108 // save credit card bubble to aim at. |
| 109 NSPoint GetSaveCreditCardBubblePoint() const; | 109 NSPoint GetSaveCreditCardBubblePoint() const; |
| 110 | 110 |
| 111 // Get the point in window coordinates in the security icon at which the page | 111 // Get the point in window coordinates for the page info bubble anchor. |
| 112 // info bubble aims. | |
| 113 NSPoint GetPageInfoBubblePoint() const; | 112 NSPoint GetPageInfoBubblePoint() const; |
| 114 | 113 |
| 114 // Get the point in window coordinates in the security icon at which infobar |
| 115 // arrows should point. |
| 116 NSPoint GetInfoBarAnchorPoint() const; |
| 117 |
| 115 // When any image decorations change, call this to ensure everything is | 118 // When any image decorations change, call this to ensure everything is |
| 116 // redrawn and laid out if necessary. | 119 // redrawn and laid out if necessary. |
| 117 void OnDecorationsChanged(); | 120 void OnDecorationsChanged(); |
| 118 | 121 |
| 119 // Layout the various decorations which live in the field. | 122 // Layout the various decorations which live in the field. |
| 120 void Layout(); | 123 void Layout(); |
| 121 | 124 |
| 122 // Re-draws |decoration| if it's already being displayed. | 125 // Re-draws |decoration| if it's already being displayed. |
| 123 void RedrawDecoration(LocationBarDecoration* decoration); | 126 void RedrawDecoration(LocationBarDecoration* decoration); |
| 124 | 127 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 // The security level of the location bar icon. | 298 // The security level of the location bar icon. |
| 296 security_state::SecurityLevel security_level_; | 299 security_state::SecurityLevel security_level_; |
| 297 | 300 |
| 298 // Used to schedule a task for the first run info bubble. | 301 // Used to schedule a task for the first run info bubble. |
| 299 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 302 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 300 | 303 |
| 301 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 304 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 302 }; | 305 }; |
| 303 | 306 |
| 304 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 307 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |