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

Side by Side Diff: chrome/browser/gtk/status_bubble_gtk.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 | « 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
39 void SetStatus(const std::string& status_utf8); 41 void SetStatus(const std::string& status_utf8);
40 42
41 // Top of the widget hierarchy for a StatusBubble. This top level widget is 43 // Top of the widget hierarchy for a StatusBubble. This top level widget is
42 // guarenteed to have its gtk_widget_name set to "status-bubble" for 44 // guarenteed to have its gtk_widget_name set to "status-bubble" for
43 // identification. 45 // identification.
44 GtkWidget* widget() { return container_.get(); } 46 GtkWidget* widget() { return container_.get(); }
45 47
46 private: 48 private:
47 // Sets the status bubble's location in the parent GtkFixed, shows the widget 49 // Sets the status bubble's location in the parent GtkFixed, shows the widget
48 // and makes sure that the status bubble has the highest z-order. 50 // and makes sure that the status bubble has the highest z-order.
49 void Show(); 51 void Show();
50 52
51 // Sets an internal timer to hide the status bubble after a delay. 53 // Sets an internal timer to hide the status bubble after a delay.
52 void HideInASecond(); 54 void HideInASecond();
53 55
54 // Builds the widgets, containers, etc. 56 // Builds the widgets, containers, etc.
55 void InitWidgets(); 57 void InitWidgets();
56 58
57 // A GtkAlignment that is the child of |slide_widget_|. 59 // A GtkAlignment that is the child of |slide_widget_|.
58 OwnedWidgetGtk container_; 60 OwnedWidgetGtk container_;
59 61
60 // The GtkLabel holding the text. 62 // The GtkLabel holding the text.
61 GtkWidget* label_; 63 GtkWidget* label_;
62 64
63 // A timer that hides our window after a delay. 65 // A timer that hides our window after a delay.
64 ScopedRunnableMethodFactory<StatusBubbleGtk> timer_factory_; 66 ScopedRunnableMethodFactory<StatusBubbleGtk> timer_factory_;
65 }; 67 };
66 68
67 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ 69 #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