| 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 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" | |
| 16 #include "chrome/browser/ui/status_bubble.h" | 15 #include "chrome/browser/ui/status_bubble.h" |
| 17 #include "content/common/notification_observer.h" | 16 #include "content/common/notification_observer.h" |
| 18 #include "content/common/notification_registrar.h" | 17 #include "content/common/notification_registrar.h" |
| 19 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 20 #include "ui/base/animation/animation_delegate.h" | 19 #include "ui/base/animation/animation_delegate.h" |
| 21 #include "ui/base/gtk/gtk_signal.h" | 20 #include "ui/base/gtk/gtk_signal.h" |
| 21 #include "ui/base/gtk/owned_widget_gtk.h" |
| 22 #include "ui/gfx/point.h" | 22 #include "ui/gfx/point.h" |
| 23 | 23 |
| 24 class GtkThemeService; | 24 class GtkThemeService; |
| 25 class Profile; | 25 class Profile; |
| 26 | 26 |
| 27 namespace ui { | 27 namespace ui { |
| 28 class SlideAnimation; | 28 class SlideAnimation; |
| 29 } | 29 } |
| 30 | 30 |
| 31 // GTK implementation of StatusBubble. Unlike Windows, our status bubble | 31 // GTK implementation of StatusBubble. Unlike Windows, our status bubble |
| (...skipping 135 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 |