| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |