Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/ui/gtk/status_bubble_gtk.h

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk.cc ('k') | chrome/browser/ui/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/timer.h" 15 #include "base/timer.h"
16 #include "chrome/browser/ui/status_bubble.h" 16 #include "chrome/browser/ui/status_bubble.h"
17 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_registrar.h" 18 #include "content/public/browser/notification_registrar.h"
19 #include "googleurl/src/gurl.h" 19 #include "googleurl/src/gurl.h"
20 #include "ui/base/animation/animation_delegate.h" 20 #include "ui/base/animation/animation_delegate.h"
21 #include "ui/base/gtk/gtk_signal.h" 21 #include "ui/base/gtk/gtk_signal.h"
22 #include "ui/base/gtk/owned_widget_gtk.h" 22 #include "ui/base/gtk/owned_widget_gtk.h"
23 #include "ui/gfx/point.h" 23 #include "ui/gfx/point.h"
24 24
25 class GtkThemeService; 25 class ThemeServiceGtk;
26 class Profile; 26 class Profile;
27 27
28 namespace ui { 28 namespace ui {
29 class SlideAnimation; 29 class SlideAnimation;
30 } 30 }
31 31
32 // GTK implementation of StatusBubble. Unlike Windows, our status bubble 32 // GTK implementation of StatusBubble. Unlike Windows, our status bubble
33 // doesn't have the nice leave-the-window effect since we can't rely on the 33 // doesn't have the nice leave-the-window effect since we can't rely on the
34 // window manager to not try to be "helpful" and center our popups, etc. 34 // window manager to not try to be "helpful" and center our popups, etc.
35 // We therefore position it absolutely in a GtkFixed, that we don't own. 35 // We therefore position it absolutely in a GtkFixed, that we don't own.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 109
110 CHROMEGTK_CALLBACK_1(StatusBubbleGtk, gboolean, HandleMotionNotify, 110 CHROMEGTK_CALLBACK_1(StatusBubbleGtk, gboolean, HandleMotionNotify,
111 GdkEventMotion*); 111 GdkEventMotion*);
112 112
113 CHROMEGTK_CALLBACK_1(StatusBubbleGtk, gboolean, HandleEnterNotify, 113 CHROMEGTK_CALLBACK_1(StatusBubbleGtk, gboolean, HandleEnterNotify,
114 GdkEventCrossing*); 114 GdkEventCrossing*);
115 115
116 content::NotificationRegistrar registrar_; 116 content::NotificationRegistrar registrar_;
117 117
118 // Provides colors. 118 // Provides colors.
119 GtkThemeService* theme_service_; 119 ThemeServiceGtk* theme_service_;
120 120
121 // The toplevel event box. 121 // The toplevel event box.
122 ui::OwnedWidgetGtk container_; 122 ui::OwnedWidgetGtk container_;
123 123
124 // The GtkAlignment holding |label_|. 124 // The GtkAlignment holding |label_|.
125 GtkWidget* padding_; 125 GtkWidget* padding_;
126 126
127 // The GtkLabel holding the text. 127 // The GtkLabel holding the text.
128 ui::OwnedWidgetGtk label_; 128 ui::OwnedWidgetGtk label_;
129 129
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/reload_button_gtk.cc ('k') | chrome/browser/ui/gtk/status_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698