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

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

Issue 2453243002: Gtk3 UI: Rename files in libgtkui containing gtk2 in their name (Closed)
Patch Set: Fix git cl format mistake Created 4 years, 1 month 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/ui/libgtkui/gtk2_ui.cc ('k') | chrome/browser/ui/libgtkui/gtk2_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_LIBGTKUI_GTK2_UTIL_H_
6 #define CHROME_BROWSER_UI_LIBGTKUI_GTK2_UTIL_H_
7
8 #include <gtk/gtk.h>
9 #include <string>
10
11 #include "ui/native_theme/native_theme.h"
12
13 class SkBitmap;
14
15 namespace aura {
16 class Window;
17 }
18
19 namespace base {
20 class CommandLine;
21 class Environment;
22 }
23
24 namespace ui {
25 class Accelerator;
26 }
27
28 namespace libgtkui {
29
30 void GtkInitFromCommandLine(const base::CommandLine& command_line);
31
32 // Returns the name of the ".desktop" file associated with our running process.
33 std::string GetDesktopName(base::Environment* env);
34
35 guint GetGdkKeyCodeForAccelerator(const ui::Accelerator& accelerator);
36
37 GdkModifierType GetGdkModifierForAccelerator(
38 const ui::Accelerator& accelerator);
39
40 // Translates event flags into plaform independent event flags.
41 int EventFlagsFromGdkState(guint state);
42
43 // Style a GTK button as a BlueButton
44 void TurnButtonBlue(GtkWidget* button);
45
46 // Sets |dialog| as transient for |parent|, which will keep it on top and center
47 // it above |parent|. Do nothing if |parent| is NULL.
48 void SetGtkTransientForAura(GtkWidget* dialog, aura::Window* parent);
49
50 // Gets the transient parent aura window for |dialog|.
51 aura::Window* GetAuraTransientParent(GtkWidget* dialog);
52
53 // Clears the transient parent for |dialog|.
54 void ClearAuraTransientParent(GtkWidget* dialog);
55
56 } // namespace libgtkui
57
58 #endif // CHROME_BROWSER_UI_LIBGTKUI_GTK2_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtkui/gtk2_ui.cc ('k') | chrome/browser/ui/libgtkui/gtk2_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698