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

Side by Side Diff: chrome/browser/ui/gtk/notifications/balloon_view_gtk.h

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
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 // Draws the view for the balloons. 5 // Draws the view for the balloons.
6 6
7 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 7 #ifndef CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
8 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 8 #define CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
9 #pragma once 9 #pragma once
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/notifications/balloon.h" 15 #include "chrome/browser/notifications/balloon.h"
16 #include "chrome/browser/ui/gtk/menu_gtk.h" 16 #include "chrome/browser/ui/gtk/menu_gtk.h"
17 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h" 17 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h"
18 #include "content/public/browser/notification_observer.h" 18 #include "content/public/browser/notification_observer.h"
19 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.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/gfx/point.h" 22 #include "ui/gfx/point.h"
23 #include "ui/gfx/rect.h" 23 #include "ui/gfx/rect.h"
24 #include "ui/gfx/size.h" 24 #include "ui/gfx/size.h"
25 25
26 class BalloonCollection; 26 class BalloonCollection;
27 class CustomDrawButton; 27 class CustomDrawButton;
28 class GtkThemeService; 28 class ThemeServiceGtk;
29 class MenuGtk; 29 class MenuGtk;
30 class NotificationOptionsMenuModel; 30 class NotificationOptionsMenuModel;
31 31
32 namespace ui { 32 namespace ui {
33 class SlideAnimation; 33 class SlideAnimation;
34 } 34 }
35 35
36 // A balloon view is the UI component for desktop notification toasts. 36 // A balloon view is the UI component for desktop notification toasts.
37 // It draws a border, and within the border an HTML renderer. 37 // It draws a border, and within the border an HTML renderer.
38 class BalloonViewImpl : public BalloonView, 38 class BalloonViewImpl : public BalloonView,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 GdkEventExpose*); 89 GdkEventExpose*);
90 CHROMEGTK_CALLBACK_0(BalloonViewImpl, void, OnCloseButton); 90 CHROMEGTK_CALLBACK_0(BalloonViewImpl, void, OnCloseButton);
91 CHROMEGTK_CALLBACK_1(BalloonViewImpl, gboolean, OnExpose, GdkEventExpose*); 91 CHROMEGTK_CALLBACK_1(BalloonViewImpl, gboolean, OnExpose, GdkEventExpose*);
92 CHROMEGTK_CALLBACK_1(BalloonViewImpl, void, OnOptionsMenuButton, 92 CHROMEGTK_CALLBACK_1(BalloonViewImpl, void, OnOptionsMenuButton,
93 GdkEventButton*); 93 GdkEventButton*);
94 CHROMEGTK_CALLBACK_0(BalloonViewImpl, gboolean, OnDestroy); 94 CHROMEGTK_CALLBACK_0(BalloonViewImpl, gboolean, OnDestroy);
95 95
96 // Non-owned pointer to the balloon which owns this object. 96 // Non-owned pointer to the balloon which owns this object.
97 Balloon* balloon_; 97 Balloon* balloon_;
98 98
99 GtkThemeService* theme_service_; 99 ThemeServiceGtk* theme_service_;
100 100
101 // The window that contains the frame of the notification. 101 // The window that contains the frame of the notification.
102 GtkWidget* frame_container_; 102 GtkWidget* frame_container_;
103 103
104 // The widget that contains the shelf. 104 // The widget that contains the shelf.
105 GtkWidget* shelf_; 105 GtkWidget* shelf_;
106 106
107 // The hbox within the shelf that contains the buttons. 107 // The hbox within the shelf that contains the buttons.
108 GtkWidget* hbox_; 108 GtkWidget* hbox_;
109 109
(...skipping 25 matching lines...) Expand all
135 // Is the menu currently showing? 135 // Is the menu currently showing?
136 bool menu_showing_; 136 bool menu_showing_;
137 137
138 // Is there a pending system-initiated close? 138 // Is there a pending system-initiated close?
139 bool pending_close_; 139 bool pending_close_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl); 141 DISALLOW_COPY_AND_ASSIGN(BalloonViewImpl);
142 }; 142 };
143 143
144 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_ 144 #endif // CHROME_BROWSER_UI_GTK_NOTIFICATIONS_BALLOON_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698