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

Side by Side Diff: content/test/test_web_contents_view.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, 10 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 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ 5 #ifndef CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ 6 #define CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/port/browser/render_view_host_delegate_view.h" 9 #include "content/port/browser/render_view_host_delegate_view.h"
10 #include "content/port/browser/web_contents_view_port.h" 10 #include "content/port/browser/web_contents_view_port.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // WebContentsViewPort: 57 // WebContentsViewPort:
58 virtual void CreateView(const gfx::Size& initial_size, 58 virtual void CreateView(const gfx::Size& initial_size,
59 gfx::NativeView context) OVERRIDE; 59 gfx::NativeView context) OVERRIDE;
60 virtual RenderWidgetHostView* CreateViewForWidget( 60 virtual RenderWidgetHostView* CreateViewForWidget(
61 RenderWidgetHost* render_widget_host) OVERRIDE; 61 RenderWidgetHost* render_widget_host) OVERRIDE;
62 virtual RenderWidgetHostView* CreateViewForPopupWidget( 62 virtual RenderWidgetHostView* CreateViewForPopupWidget(
63 RenderWidgetHost* render_widget_host) OVERRIDE; 63 RenderWidgetHost* render_widget_host) OVERRIDE;
64 virtual void SetPageTitle(const string16& title) OVERRIDE; 64 virtual void SetPageTitle(const string16& title) OVERRIDE;
65 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 65 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
66 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 66 virtual void RenderViewSwappedIn(RenderViewHost* new_host,
67 RenderViewHost* old_host) OVERRIDE;
67 #if defined(OS_MACOSX) 68 #if defined(OS_MACOSX)
68 virtual bool IsEventTracking() const OVERRIDE; 69 virtual bool IsEventTracking() const OVERRIDE;
69 virtual void CloseTabAfterEventTracking() OVERRIDE; 70 virtual void CloseTabAfterEventTracking() OVERRIDE;
70 #endif 71 #endif
71 72
72 private: 73 private:
73 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView); 74 DISALLOW_COPY_AND_ASSIGN(TestWebContentsView);
74 }; 75 };
75 76
76 } // namespace content 77 } // namespace content
77 78
78 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_ 79 #endif // CONTENT_TEST_TEST_WEB_CONTENTS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698