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

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

Issue 146043: Change status bubble so that it expands to accommodate URL's that are abridge... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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>
11 11
12 #include "chrome/browser/status_bubble.h" 12 #include "chrome/browser/status_bubble.h"
13 13
14 class GURL; 14 class GURL;
15 class StatusBubbleMacTest; 15 class StatusBubbleMacTest;
16 16
17 class StatusBubbleMac : public StatusBubble { 17 class StatusBubbleMac : public StatusBubble {
18 public: 18 public:
19 StatusBubbleMac(NSWindow* parent); 19 StatusBubbleMac(NSWindow* parent);
20 virtual ~StatusBubbleMac(); 20 virtual ~StatusBubbleMac();
21 21
22 // StatusBubble implementation. 22 // StatusBubble implementation.
23 virtual void SetStatus(const std::wstring& status); 23 virtual void SetStatus(const std::wstring& status);
24 virtual void SetURL(const GURL& url, const std::wstring& languages); 24 virtual void SetURL(const GURL& url, const std::wstring& languages);
25 virtual void Hide(); 25 virtual void Hide();
26 virtual void MouseMoved(); 26 virtual void MouseMoved();
27 virtual void UpdateDownloadShelfVisibility(bool visible); 27 virtual void UpdateDownloadShelfVisibility(bool visible);
28 virtual void SetBubbleWidth(int width);
28 29
29 private: 30 private:
30 friend class StatusBubbleMacTest; 31 friend class StatusBubbleMacTest;
31 32
32 void SetStatus(NSString* status, bool is_url); 33 void SetStatus(NSString* status, bool is_url);
33 34
34 // Construct the window/widget if it does not already exist. (Safe to call if 35 // Construct the window/widget if it does not already exist. (Safe to call if
35 // it does.) 36 // it does.)
36 void Create(); 37 void Create();
37 38
(...skipping 10 matching lines...) Expand all
48 NSString* status_text_; 49 NSString* status_text_;
49 50
50 // The url we want to display when there is no status text to display. 51 // The url we want to display when there is no status text to display.
51 NSString* url_text_; 52 NSString* url_text_;
52 53
53 // How vertically offset the bubble is from its root position. 54 // How vertically offset the bubble is from its root position.
54 int offset_; 55 int offset_;
55 }; 56 };
56 57
57 #endif // #ifndef CHROME_BROWSER_COCOA_STATUS_BUBBLE_MAC_H_ 58 #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