diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-17 19:13:21 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-17 19:13:21 +0000 |
commit | f2159badc4c3f7e6f34f92e8ad1b43ef5dfb33f2 (patch) | |
tree | 3926ed81c7608243e7b97a7aae8030279ddcd9c7 /content | |
parent | e6ed01713f65a7d475b593657d5e6889a5941d44 (diff) | |
download | chromium_src-f2159badc4c3f7e6f34f92e8ad1b43ef5dfb33f2.zip chromium_src-f2159badc4c3f7e6f34f92e8ad1b43ef5dfb33f2.tar.gz chromium_src-f2159badc4c3f7e6f34f92e8ad1b43ef5dfb33f2.tar.bz2 |
Add more functionality to WebView.
- Ability for WebContents to be replaced.
- Various focus/destruction observers.
- Hook up to BrowserView, replacing TabContentsContainer.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10073014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132614 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/web_contents/web_contents_view_mac.mm | 4 | ||||
-rw-r--r-- | content/public/browser/web_contents_view_delegate.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm index 7cd4a95..974a850 100644 --- a/content/browser/web_contents/web_contents_view_mac.mm +++ b/content/browser/web_contents/web_contents_view_mac.mm @@ -410,16 +410,12 @@ void WebContentsViewMac::CloseTab() { if (webContentsView_->delegate()) { [dragDest_ setDragDelegate:webContentsView_->delegate()-> GetDragDestDelegate()]; - webContentsView_->delegate()->NativeViewCreated(self); } } return self; } - (void)dealloc { - if (webContentsView_ && webContentsView_->delegate()) - webContentsView_->delegate()->NativeViewDestroyed(self); - // Cancel any deferred tab closes, just in case. [self cancelDeferredClose]; diff --git a/content/public/browser/web_contents_view_delegate.h b/content/public/browser/web_contents_view_delegate.h index 401638e..a58799f 100644 --- a/content/public/browser/web_contents_view_delegate.h +++ b/content/public/browser/web_contents_view_delegate.h @@ -79,10 +79,6 @@ class CONTENT_EXPORT WebContentsViewDelegate { virtual NSObject<RenderWidgetHostViewMacDelegate>* CreateRenderWidgetHostViewDelegate( RenderWidgetHost* render_widget_host) = 0; - - // Notifications that the native view was created/destroyed. - virtual void NativeViewCreated(NSView* view) = 0; - virtual void NativeViewDestroyed(NSView* view) = 0; #endif }; |