OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_ |
6 #define VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_ | 6 #define VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "views/controls/native/native_view_host.h" | 10 #include "views/controls/native/native_view_host.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 // valid Widget. The NativeControlGtk should use this opportunity to create | 29 // valid Widget. The NativeControlGtk should use this opportunity to create |
30 // its associated GtkWidget. | 30 // its associated GtkWidget. |
31 virtual void CreateNativeControl() = 0; | 31 virtual void CreateNativeControl() = 0; |
32 | 32 |
33 // MUST be called by the subclass implementation of |CreateNativeControl| | 33 // MUST be called by the subclass implementation of |CreateNativeControl| |
34 // immediately after creating the control GtkWidget, otherwise it won't be | 34 // immediately after creating the control GtkWidget, otherwise it won't be |
35 // attached to the GtkView and will be effectively orphaned. | 35 // attached to the GtkView and will be effectively orphaned. |
36 virtual void NativeControlCreated(GtkWidget* widget); | 36 virtual void NativeControlCreated(GtkWidget* widget); |
37 | 37 |
38 private: | 38 private: |
| 39 static void CallFocusIn(GtkWidget* widget, |
| 40 GdkEventFocus* event, |
| 41 NativeControlGtk* button); |
| 42 |
39 DISALLOW_COPY_AND_ASSIGN(NativeControlGtk); | 43 DISALLOW_COPY_AND_ASSIGN(NativeControlGtk); |
40 }; | 44 }; |
41 | 45 |
42 } // namespace views | 46 } // namespace views |
43 | 47 |
44 #endif // #ifndef VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_ | 48 #endif // #ifndef VIEWS_CONTROLS_NATIVE_CONTROL_GTK_H_ |
OLD | NEW |