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

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

Issue 1303733002: rAc Wallet extirpation, round 2: remove generated card bubble code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another reference Created 5 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
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>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/prefs/pref_member.h" 15 #include "base/prefs/pref_member.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" 17 #include "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
18 #include "chrome/browser/ui/location_bar/location_bar.h" 18 #include "chrome/browser/ui/location_bar/location_bar.h"
19 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" 19 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h"
20 #include "chrome/browser/ui/search/search_model_observer.h" 20 #include "chrome/browser/ui/search/search_model_observer.h"
21 #include "components/content_settings/core/common/content_settings_types.h" 21 #include "components/content_settings/core/common/content_settings_types.h"
22 #include "components/ui/zoom/zoom_event_manager_observer.h" 22 #include "components/ui/zoom/zoom_event_manager_observer.h"
23 23
24 @class AutocompleteTextField; 24 @class AutocompleteTextField;
25 class CommandUpdater; 25 class CommandUpdater;
26 class ContentSettingDecoration; 26 class ContentSettingDecoration;
27 class EVBubbleDecoration; 27 class EVBubbleDecoration;
28 class GeneratedCreditCardDecoration;
29 class KeywordHintDecoration; 28 class KeywordHintDecoration;
30 class LocationBarDecoration; 29 class LocationBarDecoration;
31 class LocationIconDecoration; 30 class LocationIconDecoration;
32 class ManagePasswordsDecoration; 31 class ManagePasswordsDecoration;
33 class MicSearchDecoration; 32 class MicSearchDecoration;
34 class PageActionDecoration; 33 class PageActionDecoration;
35 class Profile; 34 class Profile;
36 class SelectedKeywordDecoration; 35 class SelectedKeywordDecoration;
37 class StarDecoration; 36 class StarDecoration;
38 class TranslateDecoration; 37 class TranslateDecoration;
(...skipping 25 matching lines...) Expand all
64 void FocusLocation(bool select_all) override; 63 void FocusLocation(bool select_all) override;
65 void FocusSearch() override; 64 void FocusSearch() override;
66 void UpdateContentSettingsIcons() override; 65 void UpdateContentSettingsIcons() override;
67 void UpdateManagePasswordsIconAndBubble() override; 66 void UpdateManagePasswordsIconAndBubble() override;
68 void UpdatePageActions() override; 67 void UpdatePageActions() override;
69 void UpdateBookmarkStarVisibility() override; 68 void UpdateBookmarkStarVisibility() override;
70 void UpdateLocationBarVisibility(bool visible, bool animate) override; 69 void UpdateLocationBarVisibility(bool visible, bool animate) override;
71 bool ShowPageActionPopup(const extensions::Extension* extension, 70 bool ShowPageActionPopup(const extensions::Extension* extension,
72 bool grant_active_tab) override; 71 bool grant_active_tab) override;
73 void UpdateOpenPDFInReaderPrompt() override; 72 void UpdateOpenPDFInReaderPrompt() override;
74 void UpdateGeneratedCreditCardView() override;
75 void SaveStateToContents(content::WebContents* contents) override; 73 void SaveStateToContents(content::WebContents* contents) override;
76 void Revert() override; 74 void Revert() override;
77 const OmniboxView* GetOmniboxView() const override; 75 const OmniboxView* GetOmniboxView() const override;
78 OmniboxView* GetOmniboxView() override; 76 OmniboxView* GetOmniboxView() override;
79 LocationBarTesting* GetLocationBarForTesting() override; 77 LocationBarTesting* GetLocationBarForTesting() override;
80 78
81 // Overridden from LocationBarTesting: 79 // Overridden from LocationBarTesting:
82 int PageActionCount() override; 80 int PageActionCount() override;
83 int PageActionVisibleCount() override; 81 int PageActionVisibleCount() override;
84 ExtensionAction* GetPageAction(size_t index) override; 82 ExtensionAction* GetPageAction(size_t index) override;
(...skipping 30 matching lines...) Expand all
115 NSPoint GetTranslateBubblePoint() const; 113 NSPoint GetTranslateBubblePoint() const;
116 114
117 // Get the point in window coordinates in the lock icon for the Manage 115 // Get the point in window coordinates in the lock icon for the Manage
118 // Passwords bubble to aim at. 116 // Passwords bubble to aim at.
119 NSPoint GetManagePasswordsBubblePoint() const; 117 NSPoint GetManagePasswordsBubblePoint() const;
120 118
121 // 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
122 // info bubble aims. 120 // info bubble aims.
123 NSPoint GetPageInfoBubblePoint() const; 121 NSPoint GetPageInfoBubblePoint() const;
124 122
125 // Get the point in window coordinates in the "generated cc" icon at which the
126 // corresponding info bubble aims.
127 NSPoint GetGeneratedCreditCardBubblePoint() const;
128
129 // When any image decorations change, call this to ensure everything is 123 // When any image decorations change, call this to ensure everything is
130 // redrawn and laid out if necessary. 124 // redrawn and laid out if necessary.
131 void OnDecorationsChanged(); 125 void OnDecorationsChanged();
132 126
133 // Layout the various decorations which live in the field. 127 // Layout the various decorations which live in the field.
134 void Layout(); 128 void Layout();
135 129
136 // Re-draws |decoration| if it's already being displayed. 130 // Re-draws |decoration| if it's already being displayed.
137 void RedrawDecoration(LocationBarDecoration* decoration); 131 void RedrawDecoration(LocationBarDecoration* decoration);
138 132
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 251
258 // The content blocked decorations. 252 // The content blocked decorations.
259 ScopedVector<ContentSettingDecoration> content_setting_decorations_; 253 ScopedVector<ContentSettingDecoration> content_setting_decorations_;
260 254
261 // Keyword hint decoration displayed on the right-hand side. 255 // Keyword hint decoration displayed on the right-hand side.
262 scoped_ptr<KeywordHintDecoration> keyword_hint_decoration_; 256 scoped_ptr<KeywordHintDecoration> keyword_hint_decoration_;
263 257
264 // The voice search icon. 258 // The voice search icon.
265 scoped_ptr<MicSearchDecoration> mic_search_decoration_; 259 scoped_ptr<MicSearchDecoration> mic_search_decoration_;
266 260
267 // Generated CC hint decoration.
268 scoped_ptr<GeneratedCreditCardDecoration> generated_credit_card_decoration_;
269
270 // The right-hand-side button to manage passwords associated with a page. 261 // The right-hand-side button to manage passwords associated with a page.
271 scoped_ptr<ManagePasswordsDecoration> manage_passwords_decoration_; 262 scoped_ptr<ManagePasswordsDecoration> manage_passwords_decoration_;
272 263
273 Browser* browser_; 264 Browser* browser_;
274 265
275 // Used to change the visibility of the star decoration. 266 // Used to change the visibility of the star decoration.
276 BooleanPrefMember edit_bookmarks_enabled_; 267 BooleanPrefMember edit_bookmarks_enabled_;
277 268
278 // Used to schedule a task for the first run info bubble. 269 // Used to schedule a task for the first run info bubble.
279 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 270 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
280 271
281 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 272 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
282 }; 273 };
283 274
284 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 275 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698