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

Side by Side Diff: chrome/browser/ui/libgtk2ui/gtk2_util.h

Issue 1234223005: Initial gtk3 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix colors Created 5 years, 4 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
OLDNEW
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_LIBGTK2UI_GTK2_UTIL_H_ 5 #ifndef CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UTIL_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UTIL_H_ 6 #define CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UTIL_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Sets |dialog| as transient for |parent|, which will keep it on top and center 48 // Sets |dialog| as transient for |parent|, which will keep it on top and center
49 // it above |parent|. Do nothing if |parent| is NULL. 49 // it above |parent|. Do nothing if |parent| is NULL.
50 void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent); 50 void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent);
51 51
52 // Gets the transient parent aura window for |dialog|. 52 // Gets the transient parent aura window for |dialog|.
53 aura::Window* GetAuraTransientParent(GtkWidget* dialog); 53 aura::Window* GetAuraTransientParent(GtkWidget* dialog);
54 54
55 // Clears the transient parent for |dialog|. 55 // Clears the transient parent for |dialog|.
56 void ClearAuraTransientParent(GtkWidget* dialog); 56 void ClearAuraTransientParent(GtkWidget* dialog);
57 57
58 // Converts a NativeTheme state to a GtkStateType.
59 GtkStateType GetGtkState(ui::NativeTheme::State state);
60
61 } // namespace libgtk2ui 58 } // namespace libgtk2ui
62 59
63 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UTIL_H_ 60 #endif // CHROME_BROWSER_UI_LIBGTK2UI_GTK2_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698