| 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_UI_COCOA_STATUS_BUBBLE_MAC_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ | 6 #define CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
| 12 #import <QuartzCore/QuartzCore.h> | 12 #import <QuartzCore/QuartzCore.h> |
| 13 | 13 |
| 14 #include "base/string16.h" | 14 #include "base/string16.h" |
| 15 #include "base/task.h" | 15 #include "base/task.h" |
| 16 #include "chrome/browser/status_bubble.h" | 16 #include "chrome/browser/ui/status_bubble.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 class StatusBubbleMacTest; | 20 class StatusBubbleMacTest; |
| 21 | 21 |
| 22 class StatusBubbleMac : public StatusBubble { | 22 class StatusBubbleMac : public StatusBubble { |
| 23 public: | 23 public: |
| 24 // The various states that a status bubble may be in. Public for delegate | 24 // The various states that a status bubble may be in. Public for delegate |
| 25 // access (for testing). | 25 // access (for testing). |
| 26 enum StatusBubbleState { | 26 enum StatusBubbleState { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 @interface NSObject(StatusBubbleDelegate) | 163 @interface NSObject(StatusBubbleDelegate) |
| 164 // Called to query the delegate about the frame StatusBubble should position | 164 // Called to query the delegate about the frame StatusBubble should position |
| 165 // itself in. Frame is returned in the parent window coordinates. | 165 // itself in. Frame is returned in the parent window coordinates. |
| 166 - (NSRect)statusBubbleBaseFrame; | 166 - (NSRect)statusBubbleBaseFrame; |
| 167 | 167 |
| 168 // Called from SetState to notify the delegate of state changes. | 168 // Called from SetState to notify the delegate of state changes. |
| 169 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state; | 169 - (void)statusBubbleWillEnterState:(StatusBubbleMac::StatusBubbleState)state; |
| 170 @end | 170 @end |
| 171 | 171 |
| 172 #endif // CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ | 172 #endif // CHROME_BROWSER_UI_COCOA_STATUS_BUBBLE_MAC_H_ |
| OLD | NEW |