Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 422233009: Add ManagePasswordsBubbleController and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698