| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |