| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |