| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual void MouseMoved(const gfx::Point& location, | 50 virtual void MouseMoved(const gfx::Point& location, |
| 51 bool left_content) OVERRIDE; | 51 bool left_content) OVERRIDE; |
| 52 | 52 |
| 53 // ui::AnimationDelegate implementation. | 53 // ui::AnimationDelegate implementation. |
| 54 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 54 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| 55 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 55 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
| 56 | 56 |
| 57 // Called when the download shelf becomes visible or invisible. | 57 // Called when the download shelf becomes visible or invisible. |
| 58 // This is used by to ensure that the status bubble does not obscure | 58 // This is used by to ensure that the status bubble does not obscure |
| 59 // the download shelf, when it is visible. | 59 // the download shelf, when it is visible. |
| 60 virtual void UpdateDownloadShelfVisibility(bool visible); | 60 virtual void UpdateDownloadShelfVisibility(bool visible) OVERRIDE; |
| 61 | 61 |
| 62 // Overridden from content::NotificationObserver: | 62 // Overridden from content::NotificationObserver: |
| 63 virtual void Observe(int type, | 63 virtual void Observe(int type, |
| 64 const content::NotificationSource& source, | 64 const content::NotificationSource& source, |
| 65 const content::NotificationDetails& details) OVERRIDE; | 65 const content::NotificationDetails& details) OVERRIDE; |
| 66 | 66 |
| 67 // Top of the widget hierarchy for a StatusBubble. This top level widget is | 67 // Top of the widget hierarchy for a StatusBubble. This top level widget is |
| 68 // guarenteed to have its gtk_widget_name set to "status-bubble" for | 68 // guarenteed to have its gtk_widget_name set to "status-bubble" for |
| 69 // identification. | 69 // identification. |
| 70 GtkWidget* widget() { return container_.get(); } | 70 GtkWidget* widget() { return container_.get(); } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // when its text changes, triggering a size change. | 169 // when its text changes, triggering a size change. |
| 170 gfx::Point last_mouse_location_; | 170 gfx::Point last_mouse_location_; |
| 171 bool last_mouse_left_content_; | 171 bool last_mouse_left_content_; |
| 172 | 172 |
| 173 // Shortly after the cursor enters the status bubble, we'll get a message | 173 // Shortly after the cursor enters the status bubble, we'll get a message |
| 174 // that the cursor left the content area. This lets us ignore that. | 174 // that the cursor left the content area. This lets us ignore that. |
| 175 bool ignore_next_left_content_; | 175 bool ignore_next_left_content_; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 #endif // CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ | 178 #endif // CHROME_BROWSER_UI_GTK_STATUS_BUBBLE_GTK_H_ |
| OLD | NEW |