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

Side by Side Diff: chrome/browser/gtk/status_bubble_gtk.h

Issue 149156: Revert 19829. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | « chrome/browser/cocoa/status_bubble_mac.mm ('k') | chrome/browser/status_bubble.h » ('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_GTK_STATUS_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 18 matching lines...) Expand all
29 virtual void SetStatus(const std::wstring& status); 29 virtual void SetStatus(const std::wstring& status);
30 virtual void SetURL(const GURL& url, const std::wstring& languages); 30 virtual void SetURL(const GURL& url, const std::wstring& languages);
31 virtual void Hide(); 31 virtual void Hide();
32 virtual void MouseMoved(); 32 virtual void MouseMoved();
33 33
34 // Called when the download shelf becomes visible or invisible. 34 // Called when the download shelf becomes visible or invisible.
35 // This is used by to ensure that the status bubble does not obscure 35 // This is used by to ensure that the status bubble does not obscure
36 // the download shelf, when it is visible. 36 // the download shelf, when it is visible.
37 virtual void UpdateDownloadShelfVisibility(bool visible) { } 37 virtual void UpdateDownloadShelfVisibility(bool visible) { }
38 38
39 virtual void SetBubbleWidth(int width) { }
40
41 void SetStatus(const std::string& status_utf8);
42
43 // Top of the widget hierarchy for a StatusBubble. This top level widget is 39 // Top of the widget hierarchy for a StatusBubble. This top level widget is
44 // guarenteed to have its gtk_widget_name set to "status-bubble" for 40 // guarenteed to have its gtk_widget_name set to "status-bubble" for
45 // identification. 41 // identification.
46 GtkWidget* widget() { return container_.get(); } 42 GtkWidget* widget() { return container_.get(); }
47 43
48 private: 44 private:
49 // Sets the text of the label widget and controls visibility. (As contrasted 45 // Sets the text of the label widget and controls visibility. (As contrasted
50 // with setting the current status or URL text, which may be ignored for now). 46 // with setting the current status or URL text, which may be ignored for now).
51 void SetStatusTextTo(const std::string& status_utf8); 47 void SetStatusTextTo(const std::string& status_utf8);
52 48
(...skipping 17 matching lines...) Expand all
70 std::string status_text_; 66 std::string status_text_;
71 67
72 // The url we want to display when there is no status text to display. 68 // The url we want to display when there is no status text to display.
73 std::string url_text_; 69 std::string url_text_;
74 70
75 // A timer that hides our window after a delay. 71 // A timer that hides our window after a delay.
76 ScopedRunnableMethodFactory<StatusBubbleGtk> timer_factory_; 72 ScopedRunnableMethodFactory<StatusBubbleGtk> timer_factory_;
77 }; 73 };
78 74
79 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ 75 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/status_bubble_mac.mm ('k') | chrome/browser/status_bubble.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698