| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_GTK_STATUS_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // ui::AnimationDelegate implementation. | 51 // ui::AnimationDelegate implementation. |
| 52 virtual void AnimationEnded(const ui::Animation* animation); | 52 virtual void AnimationEnded(const ui::Animation* animation); |
| 53 virtual void AnimationProgressed(const ui::Animation* animation); | 53 virtual void AnimationProgressed(const ui::Animation* animation); |
| 54 | 54 |
| 55 // Called when the download shelf becomes visible or invisible. | 55 // Called when the download shelf becomes visible or invisible. |
| 56 // This is used by to ensure that the status bubble does not obscure | 56 // This is used by to ensure that the status bubble does not obscure |
| 57 // the download shelf, when it is visible. | 57 // the download shelf, when it is visible. |
| 58 virtual void UpdateDownloadShelfVisibility(bool visible); | 58 virtual void UpdateDownloadShelfVisibility(bool visible); |
| 59 | 59 |
| 60 // Overridden from NotificationObserver: | 60 // Overridden from NotificationObserver: |
| 61 virtual void Observe(NotificationType type, | 61 virtual void Observe(int type, |
| 62 const NotificationSource& source, | 62 const NotificationSource& source, |
| 63 const NotificationDetails& details); | 63 const NotificationDetails& details); |
| 64 | 64 |
| 65 // Top of the widget hierarchy for a StatusBubble. This top level widget is | 65 // Top of the widget hierarchy for a StatusBubble. This top level widget is |
| 66 // guarenteed to have its gtk_widget_name set to "status-bubble" for | 66 // guarenteed to have its gtk_widget_name set to "status-bubble" for |
| 67 // identification. | 67 // identification. |
| 68 GtkWidget* widget() { return container_.get(); } | 68 GtkWidget* widget() { return container_.get(); } |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // Sets the text of the label widget and controls visibility. (As contrasted | 71 // Sets the text of the label widget and controls visibility. (As contrasted |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // when its text changes, triggering a size change. | 167 // when its text changes, triggering a size change. |
| 168 gfx::Point last_mouse_location_; | 168 gfx::Point last_mouse_location_; |
| 169 bool last_mouse_left_content_; | 169 bool last_mouse_left_content_; |
| 170 | 170 |
| 171 // Shortly after the cursor enters the status bubble, we'll get a message | 171 // Shortly after the cursor enters the status bubble, we'll get a message |
| 172 // that the cursor left the content area. This lets us ignore that. | 172 // that the cursor left the content area. This lets us ignore that. |
| 173 bool ignore_next_left_content_; | 173 bool ignore_next_left_content_; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ | 176 #endif // CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ |
| OLD | NEW |