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

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

Issue 392007: gtk: Hide the status bubble when the mouse nears it. (Closed)
Patch Set: merge again Created 11 years, 1 month 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 | « chrome/browser/browser.cc ('k') | 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 18 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/cocoa/status_bubble_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698