Chromium Code Reviews| 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_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ |
| 6 #define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_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> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 // Signal handle id for 'destroy' signal. | 79 // Signal handle id for 'destroy' signal. |
| 80 gulong destroy_signal_id_; | 80 gulong destroy_signal_id_; |
| 81 | 81 |
| 82 // Signal handle id for 'focus-in-event' signal. | 82 // Signal handle id for 'focus-in-event' signal. |
| 83 gulong focus_signal_id_; | 83 gulong focus_signal_id_; |
| 84 | 84 |
| 85 // The GtkFixed that contains the attached gfx::NativeView (used for | 85 // The GtkFixed that contains the attached gfx::NativeView (used for |
| 86 // clipping). | 86 // clipping). |
| 87 GtkWidget* fixed_; | 87 GtkWidget* fixed_; |
| 88 | 88 |
| 89 // The native view contained within fixed_. | |
| 90 GtkWidget* host_widget_; | |
|
sky
2011/07/01 20:00:38
How come you need to cache this? If it's because o
DaveMoore
2011/07/01 20:13:34
This is cached because by the time of the destruct
| |
| 91 | |
| 89 DISALLOW_COPY_AND_ASSIGN(NativeViewHostGtk); | 92 DISALLOW_COPY_AND_ASSIGN(NativeViewHostGtk); |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace views | 95 } // namespace views |
| 93 | 96 |
| 94 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ | 97 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_GTK_H_ |
| OLD | NEW |