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 #include <string> | 8 #include <string> |
9 | 9 |
10 #import <Cocoa/Cocoa.h> | 10 #import <Cocoa/Cocoa.h> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool IsStarEnabled() const; | 105 bool IsStarEnabled() const; |
106 | 106 |
107 // Get the point in window coordinates on the star for the bookmark bubble to | 107 // Get the point in window coordinates on the star for the bookmark bubble to |
108 // aim at. Only works if IsStarEnabled returns YES. | 108 // aim at. Only works if IsStarEnabled returns YES. |
109 NSPoint GetBookmarkBubblePoint() const; | 109 NSPoint GetBookmarkBubblePoint() const; |
110 | 110 |
111 // Get the point in window coordinates on the star for the Translate bubble to | 111 // Get the point in window coordinates on the star for the Translate bubble to |
112 // aim at. | 112 // aim at. |
113 NSPoint GetTranslateBubblePoint() const; | 113 NSPoint GetTranslateBubblePoint() const; |
114 | 114 |
| 115 // Get the point in window coordinates in the lock icon for the Manage |
| 116 // Passwords bubble to aim at. |
| 117 NSPoint GetManagePasswordsBubblePoint() const; |
| 118 |
115 // Get the point in window coordinates in the security icon at which the page | 119 // Get the point in window coordinates in the security icon at which the page |
116 // info bubble aims. | 120 // info bubble aims. |
117 NSPoint GetPageInfoBubblePoint() const; | 121 NSPoint GetPageInfoBubblePoint() const; |
118 | 122 |
119 // Get the point in window coordinates in the "generated cc" icon at which the | 123 // Get the point in window coordinates in the "generated cc" icon at which the |
120 // corresponding info bubble aims. | 124 // corresponding info bubble aims. |
121 NSPoint GetGeneratedCreditCardBubblePoint() const; | 125 NSPoint GetGeneratedCreditCardBubblePoint() const; |
122 | 126 |
123 // When any image decorations change, call this to ensure everything is | 127 // When any image decorations change, call this to ensure everything is |
124 // redrawn and laid out if necessary. | 128 // redrawn and laid out if necessary. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // Used to schedule a task for the first run info bubble. | 283 // Used to schedule a task for the first run info bubble. |
280 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 284 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
281 | 285 |
282 // Used to change the visibility of the star decoration. | 286 // Used to change the visibility of the star decoration. |
283 BooleanPrefMember edit_bookmarks_enabled_; | 287 BooleanPrefMember edit_bookmarks_enabled_; |
284 | 288 |
285 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 289 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
286 }; | 290 }; |
287 | 291 |
288 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 292 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
OLD | NEW |