| OLD | NEW |
| 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ | 6 #define CHROME_BROWSER_UI_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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 // PANGO_ELLIPSIZE_END. | 301 // PANGO_ELLIPSIZE_END. |
| 302 // It must be done when the label is mapped (become visible on the screen), | 302 // It must be done when the label is mapped (become visible on the screen), |
| 303 // to make sure the pango can get correct font information for the calculation. | 303 // to make sure the pango can get correct font information for the calculation. |
| 304 void InitLabelSizeRequestAndEllipsizeMode(GtkWidget* label); | 304 void InitLabelSizeRequestAndEllipsizeMode(GtkWidget* label); |
| 305 | 305 |
| 306 // A helper function for gtk_message_dialog_new() to work around a few KDE 3 | 306 // A helper function for gtk_message_dialog_new() to work around a few KDE 3 |
| 307 // window manager bugs. You should always call it after creating a dialog with | 307 // window manager bugs. You should always call it after creating a dialog with |
| 308 // gtk_message_dialog_new. | 308 // gtk_message_dialog_new. |
| 309 void ApplyMessageDialogQuirks(GtkWidget* dialog); | 309 void ApplyMessageDialogQuirks(GtkWidget* dialog); |
| 310 | 310 |
| 311 // Performs Cut/Copy/Paste operation on the |window|. | |
| 312 void DoCut(BrowserWindow* window); | |
| 313 void DoCopy(BrowserWindow* window); | |
| 314 void DoPaste(BrowserWindow* window); | |
| 315 | |
| 316 } // namespace gtk_util | 311 } // namespace gtk_util |
| 317 | 312 |
| 318 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ | 313 #endif // CHROME_BROWSER_UI_GTK_GTK_UTIL_H_ |
| OLD | NEW |