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

Side by Side Diff: chrome/browser/ui/gtk/bubble/bubble_gtk.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/bubble/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) 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_BUBBLE_BUBBLE_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 bool match_system_theme, 70 bool match_system_theme,
71 bool grab_input, 71 bool grab_input,
72 GtkThemeService* provider, 72 GtkThemeService* provider,
73 BubbleDelegateGtk* delegate); 73 BubbleDelegateGtk* delegate);
74 74
75 // Close the bubble if it's open. This will delete the widgets and object, 75 // Close the bubble if it's open. This will delete the widgets and object,
76 // so you shouldn't hold a BubbleGtk pointer after calling Close(). 76 // so you shouldn't hold a BubbleGtk pointer after calling Close().
77 void Close(); 77 void Close();
78 78
79 // NotificationObserver implementation. 79 // NotificationObserver implementation.
80 virtual void Observe(NotificationType type, 80 virtual void Observe(int type,
81 const NotificationSource& source, 81 const NotificationSource& source,
82 const NotificationDetails& details) OVERRIDE; 82 const NotificationDetails& details) OVERRIDE;
83 83
84 // If the content contains widgets that can steal our pointer and keyboard 84 // If the content contains widgets that can steal our pointer and keyboard
85 // grabs (e.g. GtkComboBox), this method should be called after a widget 85 // grabs (e.g. GtkComboBox), this method should be called after a widget
86 // releases the grabs so we can reacquire them. Note that this causes a race 86 // releases the grabs so we can reacquire them. Note that this causes a race
87 // condition; another client could grab them before we do (ideally, GDK would 87 // condition; another client could grab them before we do (ideally, GDK would
88 // transfer the grabs back to us when the widget releases them). The window 88 // transfer the grabs back to us when the widget releases them). The window
89 // is small, though, and the worst-case scenario for this seems to just be 89 // is small, though, and the worst-case scenario for this seems to just be
90 // that the content's widgets will appear inactive even after the user clicks 90 // that the content's widgets will appear inactive even after the user clicks
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool closed_by_escape_; 207 bool closed_by_escape_;
208 208
209 NotificationRegistrar registrar_; 209 NotificationRegistrar registrar_;
210 210
211 ui::GtkSignalRegistrar signals_; 211 ui::GtkSignalRegistrar signals_;
212 212
213 DISALLOW_COPY_AND_ASSIGN(BubbleGtk); 213 DISALLOW_COPY_AND_ASSIGN(BubbleGtk);
214 }; 214 };
215 215
216 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_ 216 #endif // CHROME_BROWSER_UI_GTK_BUBBLE_BUBBLE_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/bubble/bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698