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

Side by Side Diff: views/widget/widget_gtk.h

Issue 150171: Convert menu strings to UTF16, fix some views-GTK build errors. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « views/controls/menu/simple_menu_model.cc ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 VIEWS_WIDGET_WIDGET_GTK_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_
6 #define VIEWS_WIDGET_WIDGET_GTK_H_ 6 #define VIEWS_WIDGET_WIDGET_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // A child widget. 34 // A child widget.
35 TYPE_CHILD 35 TYPE_CHILD
36 }; 36 };
37 37
38 explicit WidgetGtk(Type type); 38 explicit WidgetGtk(Type type);
39 virtual ~WidgetGtk(); 39 virtual ~WidgetGtk();
40 40
41 // Initializes this widget. 41 // Initializes this widget.
42 void Init(GtkWidget* parent, 42 void Init(GtkWidget* parent,
43 const gfx::Rect& bounds, 43 const gfx::Rect& bounds);
44 bool has_own_focus_manager);
45 44
46 // Makes the background of the window totally transparent. This must be 45 // Makes the background of the window totally transparent. This must be
47 // invoked before Init. This does a couple of checks and returns true if 46 // invoked before Init. This does a couple of checks and returns true if
48 // the window can be made transparent. The actual work of making the window 47 // the window can be made transparent. The actual work of making the window
49 // transparent is done by ConfigureWidgetForTransparentBackground. 48 // transparent is done by ConfigureWidgetForTransparentBackground.
50 bool MakeTransparent(); 49 bool MakeTransparent();
51 bool is_transparent() const { return transparent_; } 50 bool is_transparent() const { return transparent_; }
52 51
53 // Sets whether or not we are deleted when the widget is destroyed. The 52 // Sets whether or not we are deleted when the widget is destroyed. The
54 // default is true. 53 // default is true.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 bool transparent_; 243 bool transparent_;
245 244
246 scoped_ptr<DefaultThemeProvider> default_theme_provider_; 245 scoped_ptr<DefaultThemeProvider> default_theme_provider_;
247 246
248 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); 247 DISALLOW_COPY_AND_ASSIGN(WidgetGtk);
249 }; 248 };
250 249
251 } // namespace views 250 } // namespace views
252 251
253 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ 252 #endif // VIEWS_WIDGET_WIDGET_GTK_H_
OLDNEW
« no previous file with comments | « views/controls/menu/simple_menu_model.cc ('k') | views/widget/widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698