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

Side by Side Diff: content/test/test_web_contents_view.cc

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) 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 #include "content/test/test_web_contents_view.h" 5 #include "content/test/test_web_contents_view.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 TestWebContentsView::TestWebContentsView() { 9 TestWebContentsView::TestWebContentsView() {
10 } 10 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 RenderWidgetHost* render_widget_host) { 102 RenderWidgetHost* render_widget_host) {
103 return NULL; 103 return NULL;
104 } 104 }
105 105
106 void TestWebContentsView::SetPageTitle(const string16& title) { 106 void TestWebContentsView::SetPageTitle(const string16& title) {
107 } 107 }
108 108
109 void TestWebContentsView::RenderViewCreated(RenderViewHost* host) { 109 void TestWebContentsView::RenderViewCreated(RenderViewHost* host) {
110 } 110 }
111 111
112 void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* host) { 112 void TestWebContentsView::RenderViewSwappedIn(RenderViewHost* new_host,
113 RenderViewHost* old_host) {
113 } 114 }
114 115
115 #if defined(OS_MACOSX) 116 #if defined(OS_MACOSX)
116 bool TestWebContentsView::IsEventTracking() const { 117 bool TestWebContentsView::IsEventTracking() const {
117 return false; 118 return false;
118 } 119 }
119 120
120 void TestWebContentsView::CloseTabAfterEventTracking() { 121 void TestWebContentsView::CloseTabAfterEventTracking() {
121 } 122 }
122 #endif 123 #endif
123 124
124 } // namespace content 125 } // namespace content
OLDNEW
« content/port/browser/web_contents_view_port.h ('K') | « content/test/test_web_contents_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698