| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Used to schedule a task for the first run info bubble. | 282 // Used to schedule a task for the first run info bubble. |
| 279 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; | 283 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; |
| 280 | 284 |
| 281 // Used to change the visibility of the star decoration. | 285 // Used to change the visibility of the star decoration. |
| 282 BooleanPrefMember edit_bookmarks_enabled_; | 286 BooleanPrefMember edit_bookmarks_enabled_; |
| 283 | 287 |
| 284 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); | 288 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); |
| 285 }; | 289 }; |
| 286 | 290 |
| 287 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ | 291 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ |
| OLD | NEW |