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

Side by Side Diff: chrome/browser/gtk/gtk_util.h

Issue 2800015: GTK: First draft of the unified cut/copy/paste and +/-/Fullscreen menu items. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: estade cleanups Created 10 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
« no previous file with comments | « chrome/browser/gtk/gtk_custom_menu_item.cc ('k') | chrome/browser/gtk/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GTK_GTK_UTIL_H_ 5 #ifndef CHROME_BROWSER_GTK_GTK_UTIL_H_
6 #define CHROME_BROWSER_GTK_GTK_UTIL_H_ 6 #define CHROME_BROWSER_GTK_GTK_UTIL_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // is packed at the start of the hbox. This is useful for widgets that would 134 // is packed at the start of the hbox. This is useful for widgets that would
135 // otherwise expand to fill the vertical space of the hbox 135 // otherwise expand to fill the vertical space of the hbox
136 // (e.g. buttons). Returns the vbox that widget was packed in. 136 // (e.g. buttons). Returns the vbox that widget was packed in.
137 GtkWidget* CenterWidgetInHBox(GtkWidget* hbox, GtkWidget* widget, 137 GtkWidget* CenterWidgetInHBox(GtkWidget* hbox, GtkWidget* widget,
138 bool pack_at_end, int padding); 138 bool pack_at_end, int padding);
139 139
140 // Change windows accelerator style to GTK style. (GTK uses _ for 140 // Change windows accelerator style to GTK style. (GTK uses _ for
141 // accelerators. Windows uses & with && as an escape for &.) 141 // accelerators. Windows uses & with && as an escape for &.)
142 std::string ConvertAcceleratorsFromWindowsStyle(const std::string& label); 142 std::string ConvertAcceleratorsFromWindowsStyle(const std::string& label);
143 143
144 // Removes the "&" accelerators from a Windows label.
145 std::string RemoveWindowsStyleAccelerators(const std::string& label);
146
144 // Returns true if the screen is composited, false otherwise. 147 // Returns true if the screen is composited, false otherwise.
145 bool IsScreenComposited(); 148 bool IsScreenComposited();
146 149
147 // Enumerates the top-level gdk windows of the current display. 150 // Enumerates the top-level gdk windows of the current display.
148 void EnumerateTopLevelWindows(x11_util::EnumerateWindowsDelegate* delegate); 151 void EnumerateTopLevelWindows(x11_util::EnumerateWindowsDelegate* delegate);
149 152
150 // Set that clicking the button with the given mouse buttons will cause a click 153 // Set that clicking the button with the given mouse buttons will cause a click
151 // event. 154 // event.
152 // NOTE: If you need to connect to the button-press-event or 155 // NOTE: If you need to connect to the button-press-event or
153 // button-release-event signals, do so before calling this function. 156 // button-release-event signals, do so before calling this function.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // Get real window for given dialog. On ChromeOS, this gives the native dialog 306 // Get real window for given dialog. On ChromeOS, this gives the native dialog
304 // host window. On Linux, it merely returns the passed in dialog. 307 // host window. On Linux, it merely returns the passed in dialog.
305 GtkWindow* GetDialogWindow(GtkWidget* dialog); 308 GtkWindow* GetDialogWindow(GtkWidget* dialog);
306 309
307 // Gets dialog window bounds. 310 // Gets dialog window bounds.
308 gfx::Rect GetDialogBounds(GtkWidget* dialog); 311 gfx::Rect GetDialogBounds(GtkWidget* dialog);
309 312
310 } // namespace gtk_util 313 } // namespace gtk_util
311 314
312 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ 315 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/gtk_custom_menu_item.cc ('k') | chrome/browser/gtk/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698