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

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

Issue 3461016: [Mac] Convert the page info window to a bubble. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Address nits Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Set/Get the editable state of the field. 84 // Set/Get the editable state of the field.
85 void SetEditable(bool editable); 85 void SetEditable(bool editable);
86 bool IsEditable(); 86 bool IsEditable();
87 87
88 // Set the starred state of the bookmark star. 88 // Set the starred state of the bookmark star.
89 void SetStarred(bool starred); 89 void SetStarred(bool starred);
90 90
91 // Get the point on the star for the bookmark bubble to aim at. 91 // Get the point on the star for the bookmark bubble to aim at.
92 NSPoint GetBookmarkBubblePoint() const; 92 NSPoint GetBookmarkBubblePoint() const;
93 93
94 // Get the point in the security icon at which the page info bubble aims.
95 NSPoint GetPageInfoBubblePoint() const;
96
94 // Updates the location bar. Resets the bar's permanent text and 97 // Updates the location bar. Resets the bar's permanent text and
95 // security style, and if |should_restore_state| is true, restores 98 // security style, and if |should_restore_state| is true, restores
96 // saved state from the tab (for tab switching). 99 // saved state from the tab (for tab switching).
97 void Update(const TabContents* tab, bool should_restore_state); 100 void Update(const TabContents* tab, bool should_restore_state);
98 101
99 // Layout the various decorations which live in the field. 102 // Layout the various decorations which live in the field.
100 void Layout(); 103 void Layout();
101 104
102 // Returns the current TabContents. 105 // Returns the current TabContents.
103 TabContents* GetTabContents() const; 106 TabContents* GetTabContents() const;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // Used to register for notifications received by NotificationObserver. 214 // Used to register for notifications received by NotificationObserver.
212 NotificationRegistrar registrar_; 215 NotificationRegistrar registrar_;
213 216
214 // Used to schedule a task for the first run info bubble. 217 // Used to schedule a task for the first run info bubble.
215 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; 218 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_;
216 219
217 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 220 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
218 }; 221 };
219 222
220 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 223 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/base_bubble_controller.mm ('k') | chrome/browser/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698