OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ |
6 #define VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ | 6 #define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/logging.h" | 12 #include "base/basictypes.h" |
13 #include "gfx/rect.h" | 13 #include "gfx/rect.h" |
14 #include "views/controls/native/native_view_host_wrapper.h" | 14 #include "views/controls/native/native_view_host_wrapper.h" |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 | 17 |
18 class View; | 18 class View; |
19 class WidgetGtk; | 19 class WidgetGtk; |
20 | 20 |
21 // Note that the NativeViewHostGtk assumes ownership of the GtkWidget attached | 21 // Note that the NativeViewHostGtk assumes ownership of the GtkWidget attached |
22 // to it for the duration of its attachment. This is so the NativeViewHostGtk | 22 // to it for the duration of its attachment. This is so the NativeViewHostGtk |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // The GtkFixed that contains the attached gfx::NativeView (used for | 84 // The GtkFixed that contains the attached gfx::NativeView (used for |
85 // clipping). | 85 // clipping). |
86 GtkWidget* fixed_; | 86 GtkWidget* fixed_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(NativeViewHostGtk); | 88 DISALLOW_COPY_AND_ASSIGN(NativeViewHostGtk); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace views | 91 } // namespace views |
92 | 92 |
93 #endif // VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ | 93 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ |
OLD | NEW |