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

Side by Side Diff: content/port/browser/web_contents_view_port.h

Issue 12252016: Prevented connecting drag drop events to a SwappedOut RenderViewHost in WebContentsViewGtk (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use RenderViewSwappedIn to ensure we have a drag dest Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_
7 7
8 #include "content/public/browser/web_contents_view.h" 8 #include "content/public/browser/web_contents_view.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 24 matching lines...) Expand all
35 // is not strictly necessary and isn't expected to be displayed anywhere, but 35 // is not strictly necessary and isn't expected to be displayed anywhere, but
36 // can aid certain debugging tools such as Spy++ on Windows where you are 36 // can aid certain debugging tools such as Spy++ on Windows where you are
37 // trying to find a specific window. 37 // trying to find a specific window.
38 virtual void SetPageTitle(const string16& title) = 0; 38 virtual void SetPageTitle(const string16& title) = 0;
39 39
40 // Invoked when the WebContents is notified that the RenderView has been 40 // Invoked when the WebContents is notified that the RenderView has been
41 // fully created. 41 // fully created.
42 virtual void RenderViewCreated(RenderViewHost* host) = 0; 42 virtual void RenderViewCreated(RenderViewHost* host) = 0;
43 43
44 // Invoked when the WebContents is notified that the RenderView has been 44 // Invoked when the WebContents is notified that the RenderView has been
45 // swapped in. 45 // swapped in. |old_host| may be null.
Charlie Reis 2013/02/27 01:42:35 When will it be null, and what does that mean?
mthiesse 2013/02/27 14:57:13 Well right now, never. I just didn't want to force
Charlie Reis 2013/02/27 20:01:44 Let's avoid that case if we decide to keep old_hos
46 virtual void RenderViewSwappedIn(RenderViewHost* host) = 0; 46 virtual void RenderViewSwappedIn(RenderViewHost* new_host,
47 RenderViewHost* old_host) = 0;
47 48
48 #if defined(OS_MACOSX) 49 #if defined(OS_MACOSX)
49 // If we close the tab while a UI control is in an event-tracking 50 // If we close the tab while a UI control is in an event-tracking
50 // loop, the control may message freed objects and crash. 51 // loop, the control may message freed objects and crash.
51 // WebContents::Close() calls IsEventTracking(), and if it returns 52 // WebContents::Close() calls IsEventTracking(), and if it returns
52 // true CloseTabAfterEventTracking() is called and the close is not 53 // true CloseTabAfterEventTracking() is called and the close is not
53 // completed. 54 // completed.
54 virtual bool IsEventTracking() const = 0; 55 virtual bool IsEventTracking() const = 0;
55 virtual void CloseTabAfterEventTracking() = 0; 56 virtual void CloseTabAfterEventTracking() = 0;
56 #endif 57 #endif
57 }; 58 };
58 59
59 } // namespace content 60 } // namespace content
60 61
61 #endif // CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_ 62 #endif // CONTENT_PORT_BROWSER_WEB_CONTENTS_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698