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

Side by Side Diff: content/browser/web_contents/web_contents_view_gtk.h

Issue 10966023: Fix the crash that could occur when the window is closed while web contents drag is in progress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE; 55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
56 virtual void SetPageTitle(const string16& title) OVERRIDE; 56 virtual void SetPageTitle(const string16& title) OVERRIDE;
57 virtual void OnTabCrashed(base::TerminationStatus status, 57 virtual void OnTabCrashed(base::TerminationStatus status,
58 int error_code) OVERRIDE; 58 int error_code) OVERRIDE;
59 virtual void SizeContents(const gfx::Size& size) OVERRIDE; 59 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
60 virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE; 60 virtual void RenderViewCreated(content::RenderViewHost* host) OVERRIDE;
61 virtual void Focus() OVERRIDE; 61 virtual void Focus() OVERRIDE;
62 virtual void SetInitialFocus() OVERRIDE; 62 virtual void SetInitialFocus() OVERRIDE;
63 virtual void StoreFocus() OVERRIDE; 63 virtual void StoreFocus() OVERRIDE;
64 virtual void RestoreFocus() OVERRIDE; 64 virtual void RestoreFocus() OVERRIDE;
65 virtual bool IsDoingDrag() const OVERRIDE;
66 virtual void CancelDragAndCloseTab() OVERRIDE;
67 virtual WebDropData* GetDropData() const OVERRIDE; 65 virtual WebDropData* GetDropData() const OVERRIDE;
68 virtual bool IsEventTracking() const OVERRIDE; 66 virtual bool IsEventTracking() const OVERRIDE;
69 virtual void CloseTabAfterEventTracking() OVERRIDE; 67 virtual void CloseTabAfterEventTracking() OVERRIDE;
70 virtual gfx::Rect GetViewBounds() const OVERRIDE; 68 virtual gfx::Rect GetViewBounds() const OVERRIDE;
71 69
72 // Backend implementation of RenderViewHostDelegateView. 70 // Backend implementation of RenderViewHostDelegateView.
73 virtual void ShowContextMenu( 71 virtual void ShowContextMenu(
74 const content::ContextMenuParams& params, 72 const content::ContextMenuParams& params,
75 content::ContextMenuSourceType type) OVERRIDE; 73 content::ContextMenuSourceType type) OVERRIDE;
76 virtual void ShowPopupMenu(const gfx::Rect& bounds, 74 virtual void ShowPopupMenu(const gfx::Rect& bounds,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // The size we want the view to be. We keep this in a separate variable 131 // The size we want the view to be. We keep this in a separate variable
134 // because resizing in GTK+ is async. 132 // because resizing in GTK+ is async.
135 gfx::Size requested_size_; 133 gfx::Size requested_size_;
136 134
137 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); 135 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk);
138 }; 136 };
139 137
140 } // namespace content 138 } // namespace content
141 139
142 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ 140 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/browser/web_contents/web_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698