Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: views/controls/native/native_view_host_gtk.h

Issue 510004: Fix crash/leak issue in native_view_host_gtk.cc. (Closed)
Patch Set: " Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « views/controls/native/native_view_host.cc ('k') | views/controls/native/native_view_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698