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

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

Issue 149474: Expand status bubble to accommodate long URLs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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/gtk/status_bubble_gtk.cc » ('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 27 matching lines...) Expand all
38 virtual void SetStatus(const std::wstring& status); 38 virtual void SetStatus(const std::wstring& status);
39 virtual void SetURL(const GURL& url, const std::wstring& languages); 39 virtual void SetURL(const GURL& url, const std::wstring& languages);
40 virtual void Hide(); 40 virtual void Hide();
41 virtual void MouseMoved(const gfx::Point& location, bool left_content); 41 virtual void MouseMoved(const gfx::Point& location, bool left_content);
42 42
43 // Called when the download shelf becomes visible or invisible. 43 // Called when the download shelf becomes visible or invisible.
44 // This is used by to ensure that the status bubble does not obscure 44 // This is used by to ensure that the status bubble does not obscure
45 // the download shelf, when it is visible. 45 // the download shelf, when it is visible.
46 virtual void UpdateDownloadShelfVisibility(bool visible); 46 virtual void UpdateDownloadShelfVisibility(bool visible);
47 47
48 virtual void SetBubbleWidth(int width);
49
48 // Overridden from NotificationObserver: 50 // Overridden from NotificationObserver:
49 void Observe(NotificationType type, 51 void Observe(NotificationType type,
50 const NotificationSource& source, 52 const NotificationSource& source,
51 const NotificationDetails& details); 53 const NotificationDetails& details);
52 54
53 // Top of the widget hierarchy for a StatusBubble. This top level widget is 55 // Top of the widget hierarchy for a StatusBubble. This top level widget is
54 // guarenteed to have its gtk_widget_name set to "status-bubble" for 56 // guarenteed to have its gtk_widget_name set to "status-bubble" for
55 // identification. 57 // identification.
56 GtkWidget* widget() { return container_.get(); } 58 GtkWidget* widget() { return container_.get(); }
57 59
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool download_shelf_is_visible_; 123 bool download_shelf_is_visible_;
122 124
123 // 'location' and 'left_content' values from the last invocation of 125 // 'location' and 'left_content' values from the last invocation of
124 // MouseMoved(). We hang onto these so we can move the bubble if necessary 126 // MouseMoved(). We hang onto these so we can move the bubble if necessary
125 // when its text changes, triggering a size change. 127 // when its text changes, triggering a size change.
126 gfx::Point last_mouse_location_; 128 gfx::Point last_mouse_location_;
127 bool last_mouse_left_content_; 129 bool last_mouse_left_content_;
128 }; 130 };
129 131
130 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ 132 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/status_bubble_mac.mm ('k') | chrome/browser/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698