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

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

Issue 10545037: Aura/GTK integration: Create a small stub library that can talk to GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky nits Created 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_LIBGTK2UI_CHROME_GTK_FRAME_H_
6 #define CHROME_BROWSER_UI_LIBGTK2UI_CHROME_GTK_FRAME_H_
7 #pragma once
8
9 #include <gtk/gtk.h>
10
11 G_BEGIN_DECLS
12
13 // This file declares two subclasses of GtkWindow for easier gtk+ theme
14 // integration.
15 //
16 // The first is "MetaFrames," which is (was?) the name of a gobject class in
17 // the metacity window manager. To actually get at those values, we need to
18 // have an object whose gobject class name string matches the definitions in
19 // the gtkrc file. MetaFrames derives from GtkWindow.
20 //
21 // Metaframes can not be instantiated. It has no constructor; instantiate
22 // ChromeGtkFrame instead.
23 typedef struct _MetaFrames MetaFrames;
24 typedef struct _MetaFramesClass MetaFramesClass;
25
26 struct _MetaFrames {
27 GtkWindow window;
28 };
29
30 struct _MetaFramesClass {
31 GtkWindowClass parent_class;
32 };
33
34
35 // The second is ChromeGtkFrame, which defines a number of optional style
36 // properties so theme authors can control how chromium appears in gtk-theme
37 // mode. It derives from MetaFrames in chrome so older themes that declare a
38 // MetaFrames theme will still work. New themes should target this class.
39 typedef struct _ChromeGtkFrame ChromeGtkFrame;
40 typedef struct _ChromeGtkFrameClass ChromeGtkFrameClass;
41
42 struct _ChromeGtkFrame {
43 MetaFrames frames;
44 };
45
46 struct _ChromeGtkFrameClass {
47 MetaFramesClass frames_class;
48 };
49
50 // Creates a GtkWindow object the the class name "ChromeGtkFrame".
51 GtkWidget* chrome_gtk_frame_new();
52
53 G_END_DECLS
54
55 #endif // CHROME_BROWSER_UI_LIBGTK2UI_CHROME_GTK_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698