| 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_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ |
| 6 #define VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ | 6 #define VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // to it for the duration of its attachment. This is so the NativeViewHostGtk | 21 // to it for the duration of its attachment. This is so the NativeViewHostGtk |
| 22 // can safely reparent the GtkWidget in multiple passes without having to worry | 22 // can safely reparent the GtkWidget in multiple passes without having to worry |
| 23 // about the GtkWidget's refcnt falling to 0. | 23 // about the GtkWidget's refcnt falling to 0. |
| 24 class NativeViewHostGtk : public NativeViewHostWrapper { | 24 class NativeViewHostGtk : public NativeViewHostWrapper { |
| 25 public: | 25 public: |
| 26 explicit NativeViewHostGtk(NativeViewHost* host); | 26 explicit NativeViewHostGtk(NativeViewHost* host); |
| 27 virtual ~NativeViewHostGtk(); | 27 virtual ~NativeViewHostGtk(); |
| 28 | 28 |
| 29 // Overridden from NativeViewHostWrapper: | 29 // Overridden from NativeViewHostWrapper: |
| 30 virtual void NativeViewAttached(); | 30 virtual void NativeViewAttached(); |
| 31 virtual void NativeViewDetaching(); | 31 virtual void NativeViewDetaching(bool destroyed); |
| 32 virtual void AddedToWidget(); | 32 virtual void AddedToWidget(); |
| 33 virtual void RemovedFromWidget(); | 33 virtual void RemovedFromWidget(); |
| 34 virtual void InstallClip(int x, int y, int w, int h); | 34 virtual void InstallClip(int x, int y, int w, int h); |
| 35 virtual bool HasInstalledClip(); | 35 virtual bool HasInstalledClip(); |
| 36 virtual void UninstallClip(); | 36 virtual void UninstallClip(); |
| 37 virtual void ShowWidget(int x, int y, int w, int h); | 37 virtual void ShowWidget(int x, int y, int w, int h); |
| 38 virtual void HideWidget(); | 38 virtual void HideWidget(); |
| 39 virtual void SetFocus(); | 39 virtual void SetFocus(); |
| 40 | 40 |
| 41 private: | 41 private: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // The GtkFixed that contains the attached gfx::NativeView (used for | 79 // The GtkFixed that contains the attached gfx::NativeView (used for |
| 80 // clipping). | 80 // clipping). |
| 81 GtkWidget* fixed_; | 81 GtkWidget* fixed_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(NativeViewHostGtk); | 83 DISALLOW_COPY_AND_ASSIGN(NativeViewHostGtk); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace views | 86 } // namespace views |
| 87 | 87 |
| 88 #endif // VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ | 88 #endif // VIEWS_CONTROLS_NATIVE_HOST_VIEW_GTK_H_ |
| 89 | |
| OLD | NEW |