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

Side by Side Diff: chrome/common/gtk_util.h

Issue 131071: Implement window open disposition for (some) navigation buttons.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: bool->int Created 11 years, 6 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/gtk/browser_toolbar_gtk.cc ('k') | chrome/common/gtk_util.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) 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_toolbar_gtk.cc ('k') | chrome/common/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698