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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "app/animation_delegate.h" | 13 #include "app/animation_delegate.h" |
14 #include "app/gtk_signal.h" | 14 #include "app/gtk_signal.h" |
15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
16 #include "base/timer.h" | 16 #include "base/timer.h" |
17 #include "chrome/browser/gtk/owned_widget_gtk.h" | 17 #include "chrome/browser/gtk/owned_widget_gtk.h" |
18 #include "chrome/browser/status_bubble.h" | 18 #include "chrome/browser/ui/status_bubble.h" |
19 #include "chrome/common/notification_observer.h" | 19 #include "chrome/common/notification_observer.h" |
20 #include "chrome/common/notification_registrar.h" | 20 #include "chrome/common/notification_registrar.h" |
21 #include "gfx/point.h" | 21 #include "gfx/point.h" |
22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
23 | 23 |
24 class GtkThemeProvider; | 24 class GtkThemeProvider; |
25 class Profile; | 25 class Profile; |
26 class SlideAnimation; | 26 class SlideAnimation; |
27 | 27 |
28 // GTK implementation of StatusBubble. Unlike Windows, our status bubble | 28 // GTK implementation of StatusBubble. Unlike Windows, our status bubble |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 bool download_shelf_is_visible_; | 157 bool download_shelf_is_visible_; |
158 | 158 |
159 // 'location' and 'left_content' values from the last invocation of | 159 // 'location' and 'left_content' values from the last invocation of |
160 // MouseMoved(). We hang onto these so we can move the bubble if necessary | 160 // MouseMoved(). We hang onto these so we can move the bubble if necessary |
161 // when its text changes, triggering a size change. | 161 // when its text changes, triggering a size change. |
162 gfx::Point last_mouse_location_; | 162 gfx::Point last_mouse_location_; |
163 bool last_mouse_left_content_; | 163 bool last_mouse_left_content_; |
164 }; | 164 }; |
165 | 165 |
166 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ | 166 #endif // CHROME_BROWSER_GTK_STATUS_BUBBLE_GTK_H_ |
OLD | NEW |