| OLD | NEW |
| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 int height_id, | 293 int height_id, |
| 294 bool resizeable); | 294 bool resizeable); |
| 295 void ShowModalDialogWithMinLocalizedWidth(GtkWidget* dialog, | 295 void ShowModalDialogWithMinLocalizedWidth(GtkWidget* dialog, |
| 296 int width_id); | 296 int width_id); |
| 297 | 297 |
| 298 // Wrapper to present a window. On Linux, it just calls gtk_window_present or | 298 // Wrapper to present a window. On Linux, it just calls gtk_window_present or |
| 299 // gtk_window_present_with_time for non-zero timestamp. For ChromeOS, it first | 299 // gtk_window_present_with_time for non-zero timestamp. For ChromeOS, it first |
| 300 // finds the host window of the dialog contents and then present it. | 300 // finds the host window of the dialog contents and then present it. |
| 301 void PresentWindow(GtkWidget* window, int timestamp); | 301 void PresentWindow(GtkWidget* window, int timestamp); |
| 302 | 302 |
| 303 // 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. |
| 305 GtkWindow* GetDialogWindow(GtkWidget* dialog); |
| 306 |
| 303 } // namespace gtk_util | 307 } // namespace gtk_util |
| 304 | 308 |
| 305 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ | 309 #endif // CHROME_BROWSER_GTK_GTK_UTIL_H_ |
| OLD | NEW |