OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_NATIVE_WIDGET_GTK_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 class DropTargetGtk; | 34 class DropTargetGtk; |
35 class InputMethod; | 35 class InputMethod; |
36 class TooltipManagerGtk; | 36 class TooltipManagerGtk; |
37 class View; | 37 class View; |
38 | 38 |
39 namespace internal { | 39 namespace internal { |
40 class NativeWidgetDelegate; | 40 class NativeWidgetDelegate; |
41 } | 41 } |
42 | 42 |
43 // Widget implementation for GTK. | 43 // Widget implementation for GTK. |
44 class VIEWS_API NativeWidgetGtk : public internal::NativeWidgetPrivate, | 44 class VIEWS_EXPORT NativeWidgetGtk : public internal::NativeWidgetPrivate, |
45 public ui::ActiveWindowWatcherX::Observer, | 45 public ui::ActiveWindowWatcherX::Observer, |
46 public internal::InputMethodDelegate { | 46 public internal::InputMethodDelegate { |
47 public: | 47 public: |
48 explicit NativeWidgetGtk(internal::NativeWidgetDelegate* delegate); | 48 explicit NativeWidgetGtk(internal::NativeWidgetDelegate* delegate); |
49 virtual ~NativeWidgetGtk(); | 49 virtual ~NativeWidgetGtk(); |
50 | 50 |
51 // Returns the transient parent. See make_transient_to_parent for details on | 51 // Returns the transient parent. See make_transient_to_parent for details on |
52 // what the transient parent is. | 52 // what the transient parent is. |
53 GtkWindow* GetTransientParent() const; | 53 GtkWindow* GetTransientParent() const; |
54 | 54 |
55 // Makes the background of the window totally transparent. This must be | 55 // Makes the background of the window totally transparent. This must be |
56 // invoked before Init. This does a couple of checks and returns true if | 56 // invoked before Init. This does a couple of checks and returns true if |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 | 449 |
450 // If we were created for a menu. | 450 // If we were created for a menu. |
451 bool is_menu_; | 451 bool is_menu_; |
452 | 452 |
453 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk); | 453 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk); |
454 }; | 454 }; |
455 | 455 |
456 } // namespace views | 456 } // namespace views |
457 | 457 |
458 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ | 458 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ |
OLD | NEW |