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

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

Issue 3014029: [Mac] Make popup-blocked animation animate to content-setting icon. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: rsesek comments. Created 10 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
« no previous file with comments | « no previous file | chrome/browser/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) 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 #include <map> 10 #include <map>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // PageAction icon even if it has not been activated by the extension. 108 // PageAction icon even if it has not been activated by the extension.
109 // This is used by the ExtensionInstalledBubble to preview what the icon 109 // This is used by the ExtensionInstalledBubble to preview what the icon
110 // will look like for the user upon installation of the extension. 110 // will look like for the user upon installation of the extension.
111 void SetPreviewEnabledPageAction(ExtensionAction* page_action, 111 void SetPreviewEnabledPageAction(ExtensionAction* page_action,
112 bool preview_enabled); 112 bool preview_enabled);
113 113
114 // Return |page_action|'s info-bubble point in window coordinates. 114 // Return |page_action|'s info-bubble point in window coordinates.
115 // Returns |NSZeroPoint| if |page_action| is not present. 115 // Returns |NSZeroPoint| if |page_action| is not present.
116 NSPoint GetPageActionBubblePoint(ExtensionAction* page_action); 116 NSPoint GetPageActionBubblePoint(ExtensionAction* page_action);
117 117
118 // Get the blocked-popup content setting's frame in window
119 // coordinates. Used by the blocked-popup animation. Returns
120 // |NSZeroRect| if the relevant content setting decoration is not
121 // visible.
122 NSRect GetBlockedPopupRect() const;
123
118 virtual void OnAutocompleteAccept(const GURL& url, 124 virtual void OnAutocompleteAccept(const GURL& url,
119 WindowOpenDisposition disposition, 125 WindowOpenDisposition disposition,
120 PageTransition::Type transition, 126 PageTransition::Type transition,
121 const GURL& alternate_nav_url); 127 const GURL& alternate_nav_url);
122 virtual void OnChanged(); 128 virtual void OnChanged();
123 virtual void OnInputInProgress(bool in_progress); 129 virtual void OnInputInProgress(bool in_progress);
124 virtual void OnKillFocus(); 130 virtual void OnKillFocus();
125 virtual void OnSetFocus(); 131 virtual void OnSetFocus();
126 virtual SkBitmap GetFavIcon() const; 132 virtual SkBitmap GetFavIcon() const;
127 virtual std::wstring GetTitle() const; 133 virtual std::wstring GetTitle() const;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // Used to register for notifications received by NotificationObserver. 210 // Used to register for notifications received by NotificationObserver.
205 NotificationRegistrar registrar_; 211 NotificationRegistrar registrar_;
206 212
207 // Used to schedule a task for the first run info bubble. 213 // Used to schedule a task for the first run info bubble.
208 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; 214 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_;
209 215
210 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 216 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
211 }; 217 };
212 218
213 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 219 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | 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