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

Side by Side Diff: chrome/browser/cocoa/status_bubble_mac.h

Issue 149474: Expand status bubble to accommodate long URLs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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/cocoa/status_bubble_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_STATUS_BUBBLE_MAC_H_ 5 #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_
6 #define CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_ 6 #define CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 20 matching lines...) Expand all
31 31
32 StatusBubbleMac(NSWindow* parent, id delegate); 32 StatusBubbleMac(NSWindow* parent, id delegate);
33 virtual ~StatusBubbleMac(); 33 virtual ~StatusBubbleMac();
34 34
35 // StatusBubble implementation. 35 // StatusBubble implementation.
36 virtual void SetStatus(const std::wstring& status); 36 virtual void SetStatus(const std::wstring& status);
37 virtual void SetURL(const GURL& url, const std::wstring& languages); 37 virtual void SetURL(const GURL& url, const std::wstring& languages);
38 virtual void Hide(); 38 virtual void Hide();
39 virtual void MouseMoved(const gfx::Point& location, bool left_content); 39 virtual void MouseMoved(const gfx::Point& location, bool left_content);
40 virtual void UpdateDownloadShelfVisibility(bool visible); 40 virtual void UpdateDownloadShelfVisibility(bool visible);
41 virtual void SetBubbleWidth(int width);
41 42
42 // Mac-specific method: Update the size and position of the status bubble to 43 // Mac-specific method: Update the size and position of the status bubble to
43 // match the parent window. Safe to call even when the status bubble does not 44 // match the parent window. Safe to call even when the status bubble does not
44 // exist. 45 // exist.
45 void UpdateSizeAndPosition(); 46 void UpdateSizeAndPosition();
46 47
47 // Mac-specific method: Change the parent window of the status bubble. Safe to 48 // Mac-specific method: Change the parent window of the status bubble. Safe to
48 // call even when the status bubble does not exist. 49 // call even when the status bubble does not exist.
49 void SwitchParentWindow(NSWindow* parent); 50 void SwitchParentWindow(NSWindow* parent);
50 51
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 @interface NSObject(StatusBubbleDelegate) 139 @interface NSObject(StatusBubbleDelegate)
139 // Called to query the delegate about the vertical offset (if any) that should 140 // Called to query the delegate about the vertical offset (if any) that should
140 // be applied to the StatusBubble's position. 141 // be applied to the StatusBubble's position.
141 - (CGFloat)verticalOffsetForStatusBubble; 142 - (CGFloat)verticalOffsetForStatusBubble;
142 143
143 // Called from SetState to notify the delegate of state changes. 144 // Called from SetState to notify the delegate of state changes.
144 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state; 145 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state;
145 @end 146 @end
146 147
147 #endif // #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_ 148 #endif // #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698