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

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

Issue 419263002: Add ManagePasswordsDecoration and unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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 10 matching lines...) Expand all
21 #include "components/content_settings/core/common/content_settings_types.h" 21 #include "components/content_settings/core/common/content_settings_types.h"
22 22
23 @class AutocompleteTextField; 23 @class AutocompleteTextField;
24 class CommandUpdater; 24 class CommandUpdater;
25 class ContentSettingDecoration; 25 class ContentSettingDecoration;
26 class EVBubbleDecoration; 26 class EVBubbleDecoration;
27 class GeneratedCreditCardDecoration; 27 class GeneratedCreditCardDecoration;
28 class KeywordHintDecoration; 28 class KeywordHintDecoration;
29 class LocationBarDecoration; 29 class LocationBarDecoration;
30 class LocationIconDecoration; 30 class LocationIconDecoration;
31 class ManagePasswordsDecoration;
31 class MicSearchDecoration; 32 class MicSearchDecoration;
32 class OriginChipDecoration; 33 class OriginChipDecoration;
33 class PageActionDecoration; 34 class PageActionDecoration;
34 class Profile; 35 class Profile;
35 class SearchButtonDecoration; 36 class SearchButtonDecoration;
36 class SelectedKeywordDecoration; 37 class SelectedKeywordDecoration;
37 class StarDecoration; 38 class StarDecoration;
38 class TranslateDecoration; 39 class TranslateDecoration;
39 class ZoomDecoration; 40 class ZoomDecoration;
40 class ZoomDecorationTest; 41 class ZoomDecorationTest;
(...skipping 16 matching lines...) Expand all
57 58
58 // Overridden from LocationBar: 59 // Overridden from LocationBar:
59 virtual void ShowFirstRunBubble() OVERRIDE; 60 virtual void ShowFirstRunBubble() OVERRIDE;
60 virtual GURL GetDestinationURL() const OVERRIDE; 61 virtual GURL GetDestinationURL() const OVERRIDE;
61 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; 62 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE;
62 virtual content::PageTransition GetPageTransition() const OVERRIDE; 63 virtual content::PageTransition GetPageTransition() const OVERRIDE;
63 virtual void AcceptInput() OVERRIDE; 64 virtual void AcceptInput() OVERRIDE;
64 virtual void FocusLocation(bool select_all) OVERRIDE; 65 virtual void FocusLocation(bool select_all) OVERRIDE;
65 virtual void FocusSearch() OVERRIDE; 66 virtual void FocusSearch() OVERRIDE;
66 virtual void UpdateContentSettingsIcons() OVERRIDE; 67 virtual void UpdateContentSettingsIcons() OVERRIDE;
67 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE {}; 68 virtual void UpdateManagePasswordsIconAndBubble() OVERRIDE;
68 virtual void UpdatePageActions() OVERRIDE; 69 virtual void UpdatePageActions() OVERRIDE;
69 virtual void InvalidatePageActions() OVERRIDE; 70 virtual void InvalidatePageActions() OVERRIDE;
70 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE; 71 virtual void UpdateOpenPDFInReaderPrompt() OVERRIDE;
71 virtual void UpdateGeneratedCreditCardView() OVERRIDE; 72 virtual void UpdateGeneratedCreditCardView() OVERRIDE;
72 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE; 73 virtual void SaveStateToContents(content::WebContents* contents) OVERRIDE;
73 virtual void Revert() OVERRIDE; 74 virtual void Revert() OVERRIDE;
74 virtual const OmniboxView* GetOmniboxView() const OVERRIDE; 75 virtual const OmniboxView* GetOmniboxView() const OVERRIDE;
75 virtual OmniboxView* GetOmniboxView() OVERRIDE; 76 virtual OmniboxView* GetOmniboxView() OVERRIDE;
76 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE; 77 virtual LocationBarTesting* GetLocationBarForTesting() OVERRIDE;
77 78
(...skipping 26 matching lines...) Expand all
104 bool IsStarEnabled() const; 105 bool IsStarEnabled() const;
105 106
106 // 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
107 // aim at. Only works if IsStarEnabled returns YES. 108 // aim at. Only works if IsStarEnabled returns YES.
108 NSPoint GetBookmarkBubblePoint() const; 109 NSPoint GetBookmarkBubblePoint() const;
109 110
110 // 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
111 // aim at. 112 // aim at.
112 NSPoint GetTranslateBubblePoint() const; 113 NSPoint GetTranslateBubblePoint() const;
113 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;
rohitrao (ping after 24h) 2014/07/31 12:35:19 Is this function actually called anywhere? I woul
dconnelly 2014/08/01 09:11:46 It's used, but not in this CL. I'll move it to a f
118
114 // 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
115 // info bubble aims. 120 // info bubble aims.
116 NSPoint GetPageInfoBubblePoint() const; 121 NSPoint GetPageInfoBubblePoint() const;
117 122
118 // 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
119 // corresponding info bubble aims. 124 // corresponding info bubble aims.
120 NSPoint GetGeneratedCreditCardBubblePoint() const; 125 NSPoint GetGeneratedCreditCardBubblePoint() const;
121 126
122 // When any image decorations change, call this to ensure everything is 127 // When any image decorations change, call this to ensure everything is
123 // redrawn and laid out if necessary. 128 // redrawn and laid out if necessary.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 264
260 // Generated CC hint decoration. 265 // Generated CC hint decoration.
261 scoped_ptr<GeneratedCreditCardDecoration> generated_credit_card_decoration_; 266 scoped_ptr<GeneratedCreditCardDecoration> generated_credit_card_decoration_;
262 267
263 // The right-hand-side search button that is shown on search result pages. 268 // The right-hand-side search button that is shown on search result pages.
264 scoped_ptr<SearchButtonDecoration> search_button_decoration_; 269 scoped_ptr<SearchButtonDecoration> search_button_decoration_;
265 270
266 // The left-hand-side origin chip. 271 // The left-hand-side origin chip.
267 scoped_ptr<OriginChipDecoration> origin_chip_decoration_; 272 scoped_ptr<OriginChipDecoration> origin_chip_decoration_;
268 273
274 // The right-hand-side button to manage passwords associated with a page.
275 scoped_ptr<ManagePasswordsDecoration> manage_passwords_decoration_;
276
269 Browser* browser_; 277 Browser* browser_;
270 278
271 // Used to register for notifications received by NotificationObserver. 279 // Used to register for notifications received by NotificationObserver.
272 content::NotificationRegistrar registrar_; 280 content::NotificationRegistrar registrar_;
273 281
274 // Used to schedule a task for the first run info bubble. 282 // Used to schedule a task for the first run info bubble.
275 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 283 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
276 284
277 // Used to change the visibility of the star decoration. 285 // Used to change the visibility of the star decoration.
278 BooleanPrefMember edit_bookmarks_enabled_; 286 BooleanPrefMember edit_bookmarks_enabled_;
279 287
280 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 288 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
281 }; 289 };
282 290
283 #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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698