Mac: Use NSView* instead of void* for cef_window_handle_t.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@183 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-02-02 16:30:24 +00:00
parent 02bd128046
commit af12107c33
3 changed files with 48 additions and 40 deletions

View File

@@ -27,7 +27,7 @@ CefWindowHandle CefBrowserImpl::GetWindowHandle()
gfx::NativeView CefBrowserImpl::UIT_GetMainWndHandle() const {
REQUIRE_UIT();
return (NSView*)window_info_.m_View;
return window_info_.m_View;
}
void CefBrowserImpl::UIT_CreateBrowser(const CefString& url)
@@ -46,7 +46,7 @@ void CefBrowserImpl::UIT_CreateBrowser(const CefString& url)
NSWindow* newWnd = nil;
NSView* parentView = (NSView*)window_info_.m_ParentView;
NSView* parentView = window_info_.m_ParentView;
gfx::Rect contentRect(window_info_.m_x, window_info_.m_y,
window_info_.m_nWidth, window_info_.m_nHeight);
if (parentView == nil) {
@@ -70,7 +70,7 @@ void CefBrowserImpl::UIT_CreateBrowser(const CefString& url)
backing:NSBackingStoreBuffered
defer:NO];
parentView = [newWnd contentView];
window_info_.m_ParentView = (void*)parentView;
window_info_.m_ParentView = parentView;
}
WebPreferences prefs;
@@ -87,7 +87,7 @@ void CefBrowserImpl::UIT_CreateBrowser(const CefString& url)
BrowserWebView* browserView = (BrowserWebView*)webviewhost_->view_handle();
browserView.browser = this;
window_info_.m_View = (void*)browserView;
window_info_.m_View = browserView;
Unlock();