2013-03-14 13:03:50 +00:00
|
|
|
#include "browser/inspectable_web_contents.h"
|
|
|
|
|
|
|
|
#include "browser/inspectable_web_contents_impl.h"
|
|
|
|
|
2013-10-10 20:23:52 +00:00
|
|
|
#include "content/public/browser/web_contents_view.h"
|
|
|
|
|
2013-03-14 13:03:50 +00:00
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
InspectableWebContents* InspectableWebContents::Create(const content::WebContents::CreateParams& create_params) {
|
2013-10-10 20:23:52 +00:00
|
|
|
auto contents = content::WebContents::Create(create_params);
|
|
|
|
#if defined(OS_MACOSX)
|
|
|
|
// Work around http://crbug.com/279472.
|
|
|
|
contents->GetView()->SetAllowOverlappingViews(true);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
return Create(contents);
|
2013-04-20 05:24:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
InspectableWebContents* InspectableWebContents::Create(content::WebContents* web_contents) {
|
|
|
|
return new InspectableWebContentsImpl(web_contents);
|
2013-03-14 13:03:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|