| 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 18 matching lines...) Expand all Loading... |
| 29 kBubbleHidingFadeOut // In a fade-out transition | 29 kBubbleHidingFadeOut // In a fade-out transition |
| 30 }; | 30 }; |
| 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(); | 39 virtual void MouseMoved(const gfx::Point& location, bool left_content); |
| 40 virtual void UpdateDownloadShelfVisibility(bool visible); | 40 virtual void UpdateDownloadShelfVisibility(bool visible); |
| 41 | 41 |
| 42 // Mac-specific method: Update the size and position of the status bubble to | 42 // 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 | 43 // match the parent window. Safe to call even when the status bubble does not |
| 44 // exist. | 44 // exist. |
| 45 void UpdateSizeAndPosition(); | 45 void UpdateSizeAndPosition(); |
| 46 | 46 |
| 47 // Delegate method called when a fade-in or fade-out transition has | 47 // Delegate method called when a fade-in or fade-out transition has |
| 48 // completed. This is public so that it may be visible to the CAAnimation | 48 // completed. This is public so that it may be visible to the CAAnimation |
| 49 // delegate, which is an Objective-C object. | 49 // delegate, which is an Objective-C object. |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 @interface NSObject(StatusBubbleDelegate) | 126 @interface NSObject(StatusBubbleDelegate) |
| 127 // Called to query the delegate about the vertical offset (if any) that should | 127 // Called to query the delegate about the vertical offset (if any) that should |
| 128 // be applied to the StatusBubble's position. | 128 // be applied to the StatusBubble's position. |
| 129 - (float)verticalOffsetForStatusBubble; | 129 - (float)verticalOffsetForStatusBubble; |
| 130 | 130 |
| 131 // Called from SetState to notify the delegate of state changes. | 131 // Called from SetState to notify the delegate of state changes. |
| 132 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state; | 132 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state; |
| 133 @end | 133 @end |
| 134 | 134 |
| 135 #endif // #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_ | 135 #endif // #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_ |
| OLD | NEW |