#include "third_party/WebKit/public/platform/WebURLResponse.h"
#include "third_party/WebKit/public/web/WebDocument.h"
#include "third_party/WebKit/public/web/WebElement.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebPluginContainer.h"
#include "third_party/WebKit/public/web/WebView.h"
#include "webkit/common/webpreferences.h"
using blink::WebCursorInfo;
using blink::WebDragData;
using blink::WebDragOperationsMask;
-using blink::WebFrame;
using blink::WebImage;
using blink::WebInputEvent;
+using blink::WebLocalFrame;
using blink::WebMouseEvent;
using blink::WebPlugin;
using blink::WebPluginContainer;
: delegate_(delegate),
container_(NULL),
web_view_(WebView::create(this)),
- web_frame_(WebFrame::create(this)),
+ web_frame_(WebLocalFrame::create(this)),
finished_loading_(false),
focused_(false) {
web_view_->setMainFrame(web_frame_);
container_->element().setAttribute("title", text);
}
-void WebViewPlugin::startDragging(WebFrame*,
+void WebViewPlugin::startDragging(WebLocalFrame*,
const WebDragData&,
WebDragOperationsMask,
const WebImage&,
web_view_->dragSourceSystemDragEnded();
}
+bool WebViewPlugin::allowsBrokenNullLayerTreeView() const {
+ return true;
+}
+
void WebViewPlugin::didInvalidateRect(const WebRect& rect) {
if (container_)
container_->invalidateRect(rect);
current_cursor_ = cursor;
}
-void WebViewPlugin::didClearWindowObject(WebFrame* frame, int world_id) {
+void WebViewPlugin::didClearWindowObject(WebLocalFrame* frame, int world_id) {
if (delegate_)
delegate_->BindWebFrame(frame);
}
-void WebViewPlugin::didReceiveResponse(WebFrame* frame,
+void WebViewPlugin::didReceiveResponse(WebLocalFrame* frame,
unsigned identifier,
const WebURLResponse& response) {
WebFrameClient::didReceiveResponse(frame, identifier, response);