| 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_COMMON_GTK_UTIL_H_ | 5 #ifndef CHROME_COMMON_GTK_UTIL_H_ |
| 6 #define CHROME_COMMON_GTK_UTIL_H_ | 6 #define CHROME_COMMON_GTK_UTIL_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 class EnumerateWindowsDelegate { | 93 class EnumerateWindowsDelegate { |
| 94 public: | 94 public: |
| 95 // |xid| is the X Window ID of the enumerated window. Return true to stop | 95 // |xid| is the X Window ID of the enumerated window. Return true to stop |
| 96 // further iteration. | 96 // further iteration. |
| 97 virtual bool ShouldStopIterating(XID xid) = 0; | 97 virtual bool ShouldStopIterating(XID xid) = 0; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // Enumerates the top-level gdk windows of the current display. | 100 // Enumerates the top-level gdk windows of the current display. |
| 101 void EnumerateChildWindows(EnumerateWindowsDelegate* delegate); | 101 void EnumerateChildWindows(EnumerateWindowsDelegate* delegate); |
| 102 | 102 |
| 103 // Set that a button causes a page navigation. In particular, it will accept |
| 104 // middle clicks. Warning: only call this *after* you have connected your |
| 105 // own handlers for button-press and button-release events, or you will not get |
| 106 // those events. |
| 107 void SetButtonTriggersNavigation(GtkWidget* button); |
| 108 |
| 103 } // namespace gtk_util | 109 } // namespace gtk_util |
| 104 | 110 |
| 105 #endif // CHROME_COMMON_GTK_UTIL_H_ | 111 #endif // CHROME_COMMON_GTK_UTIL_H_ |
| OLD | NEW |