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

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

Issue 647613002: Fix RenderWidgetHostViewGuest leak. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bring back mac delegate() Created 6 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
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/renderer_host/render_view_host_delegate_view.h" 9 #include "content/browser/renderer_host/render_view_host_delegate_view.h"
10 #include "content/browser/web_contents/web_contents_view.h" 10 #include "content/browser/web_contents/web_contents_view.h"
(...skipping 26 matching lines...) Expand all
37 virtual void SizeContents(const gfx::Size& size) override; 37 virtual void SizeContents(const gfx::Size& size) override;
38 virtual void Focus() override; 38 virtual void Focus() override;
39 virtual void SetInitialFocus() override; 39 virtual void SetInitialFocus() override;
40 virtual void StoreFocus() override; 40 virtual void StoreFocus() override;
41 virtual void RestoreFocus() override; 41 virtual void RestoreFocus() override;
42 virtual DropData* GetDropData() const override; 42 virtual DropData* GetDropData() const override;
43 virtual gfx::Rect GetViewBounds() const override; 43 virtual gfx::Rect GetViewBounds() const override;
44 virtual void CreateView( 44 virtual void CreateView(
45 const gfx::Size& initial_size, gfx::NativeView context) override; 45 const gfx::Size& initial_size, gfx::NativeView context) override;
46 virtual RenderWidgetHostViewBase* CreateViewForWidget( 46 virtual RenderWidgetHostViewBase* CreateViewForWidget(
47 RenderWidgetHost* render_widget_host) override; 47 RenderWidgetHost* render_widget_host, bool is_guest_view_hack) override;
48 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget( 48 virtual RenderWidgetHostViewBase* CreateViewForPopupWidget(
49 RenderWidgetHost* render_widget_host) override; 49 RenderWidgetHost* render_widget_host) override;
50 virtual void SetPageTitle(const base::string16& title) override; 50 virtual void SetPageTitle(const base::string16& title) override;
51 virtual void RenderViewCreated(RenderViewHost* host) override; 51 virtual void RenderViewCreated(RenderViewHost* host) override;
52 virtual void RenderViewSwappedIn(RenderViewHost* host) override; 52 virtual void RenderViewSwappedIn(RenderViewHost* host) override;
53 virtual void SetOverscrollControllerEnabled(bool enabled) override; 53 virtual void SetOverscrollControllerEnabled(bool enabled) override;
54 54
55 // Backend implementation of RenderViewHostDelegateView. 55 // Backend implementation of RenderViewHostDelegateView.
56 virtual void ShowContextMenu(RenderFrameHost* render_frame_host, 56 virtual void ShowContextMenu(RenderFrameHost* render_frame_host,
57 const ContextMenuParams& params) override; 57 const ContextMenuParams& params) override;
(...skipping 24 matching lines...) Expand all
82 82
83 // Interface for extensions to WebContentsView. Used to show the context menu. 83 // Interface for extensions to WebContentsView. Used to show the context menu.
84 scoped_ptr<WebContentsViewDelegate> delegate_; 84 scoped_ptr<WebContentsViewDelegate> delegate_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid); 86 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAndroid);
87 }; 87 };
88 88
89 } // namespace content 89 } // namespace content
90 90
91 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_ 91 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view.h ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698