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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.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: 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/port/browser/render_view_host_delegate_view.h" 10 #include "content/port/browser/render_view_host_delegate_view.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // WebContentsViewPort implementation ---------------------------------------- 46 // WebContentsViewPort implementation ----------------------------------------
47 virtual void CreateView( 47 virtual void CreateView(
48 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE; 48 const gfx::Size& initial_size, gfx::NativeView context) OVERRIDE;
49 virtual RenderWidgetHostView* CreateViewForWidget( 49 virtual RenderWidgetHostView* CreateViewForWidget(
50 RenderWidgetHost* render_widget_host) OVERRIDE; 50 RenderWidgetHost* render_widget_host) OVERRIDE;
51 virtual RenderWidgetHostView* CreateViewForPopupWidget( 51 virtual RenderWidgetHostView* CreateViewForPopupWidget(
52 RenderWidgetHost* render_widget_host) OVERRIDE; 52 RenderWidgetHost* render_widget_host) OVERRIDE;
53 virtual void SetPageTitle(const string16& title) OVERRIDE; 53 virtual void SetPageTitle(const string16& title) OVERRIDE;
54 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE; 54 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
55 virtual void RenderViewSwappedIn(RenderViewHost* host) OVERRIDE; 55 virtual void RenderViewSwappedIn(RenderViewHost* new_host,
56 RenderViewHost* old_host) OVERRIDE;
56 57
57 // Backend implementation of RenderViewHostDelegateView. 58 // Backend implementation of RenderViewHostDelegateView.
58 virtual void ShowContextMenu(const ContextMenuParams& params, 59 virtual void ShowContextMenu(const ContextMenuParams& params,
59 ContextMenuSourceType type) OVERRIDE; 60 ContextMenuSourceType type) OVERRIDE;
60 virtual void ShowPopupMenu(const gfx::Rect& bounds, 61 virtual void ShowPopupMenu(const gfx::Rect& bounds,
61 int item_height, 62 int item_height,
62 double item_font_size, 63 double item_font_size,
63 int selected_item, 64 int selected_item,
64 const std::vector<WebMenuItem>& items, 65 const std::vector<WebMenuItem>& items,
65 bool right_aligned, 66 bool right_aligned,
(...skipping 16 matching lines...) Expand all
82 83
83 // Interface for extensions to WebContentsView. Used to show the context menu. 84 // Interface for extensions to WebContentsView. Used to show the context menu.
84 scoped_ptr<WebContentsViewDelegate> delegate_; 85 scoped_ptr<WebContentsViewDelegate> delegate_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 87 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
87 }; 88 };
88 89
89 } // namespace content 90 } // namespace content
90 91
91 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 92 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698