mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Move browser object tracking from CefContext to CefContentBrowserClient and introduce a new CefBrowserInfo class to simplify ID management (issue #830).
- Add a new CefBrowser::IsSame method (issue #830). - Improve CefRenderProcessHandler::OnBrowserCreated documentation (issue #830). - Add a new NavigationTest.CrossOrigin test for cross-origin navigation (issue #830). - Fix existing NavigationTest tests to run in single-process mode. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@963 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -131,13 +131,20 @@ void CefBrowserImpl::StopLoad() {
|
||||
int CefBrowserImpl::GetIdentifier() {
|
||||
CEF_REQUIRE_RT_RETURN(0);
|
||||
|
||||
return browser_window_id();
|
||||
return browser_id();
|
||||
}
|
||||
|
||||
bool CefBrowserImpl::IsSame(CefRefPtr<CefBrowser> that) {
|
||||
CEF_REQUIRE_RT_RETURN(false);
|
||||
|
||||
CefBrowserImpl* impl = static_cast<CefBrowserImpl*>(that.get());
|
||||
return (impl == this);
|
||||
}
|
||||
|
||||
bool CefBrowserImpl::IsPopup() {
|
||||
CEF_REQUIRE_RT_RETURN(false);
|
||||
|
||||
return is_popup_;
|
||||
return is_popup();
|
||||
}
|
||||
|
||||
bool CefBrowserImpl::HasDocument() {
|
||||
@ -255,7 +262,7 @@ CefBrowserImpl::CefBrowserImpl(content::RenderView* render_view,
|
||||
int browser_id,
|
||||
bool is_popup)
|
||||
: content::RenderViewObserver(render_view),
|
||||
browser_window_id_(browser_id),
|
||||
browser_id_(browser_id),
|
||||
is_popup_(is_popup),
|
||||
last_focused_frame_id_(kInvalidFrameId) {
|
||||
response_manager_.reset(new CefResponseManager);
|
||||
|
Reference in New Issue
Block a user