| Index: content/renderer/render_view_impl.h
|
| diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
|
| index f67e8d2ddc96f76eb93beb72d3b0fc4de6ef9620..ede257362fcdbd177c7d0d520d6cddc8929b4b2c 100644
|
| --- a/content/renderer/render_view_impl.h
|
| +++ b/content/renderer/render_view_impl.h
|
| @@ -84,7 +84,7 @@ namespace ui {
|
| struct SelectedFileInfo;
|
| } // namespace ui
|
|
|
| -namespace WebKit {
|
| +namespace blink {
|
| class WebApplicationCacheHost;
|
| class WebApplicationCacheHostClient;
|
| class WebDOMMessageEvent;
|
| @@ -176,9 +176,9 @@ class WebMediaPlayerProxyAndroid;
|
| //
|
| class CONTENT_EXPORT RenderViewImpl
|
| : public RenderWidget,
|
| - NON_EXPORTED_BASE(public WebKit::WebViewClient),
|
| - NON_EXPORTED_BASE(public WebKit::WebFrameClient),
|
| - NON_EXPORTED_BASE(public WebKit::WebPageSerializerClient),
|
| + NON_EXPORTED_BASE(public blink::WebViewClient),
|
| + NON_EXPORTED_BASE(public blink::WebFrameClient),
|
| + NON_EXPORTED_BASE(public blink::WebPageSerializerClient),
|
| public RenderView,
|
| NON_EXPORTED_BASE(public WebMediaPlayerDelegate),
|
| public base::SupportsWeakPtr<RenderViewImpl> {
|
| @@ -198,7 +198,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| bool swapped_out,
|
| bool hidden,
|
| int32 next_page_id,
|
| - const WebKit::WebScreenInfo& screen_info,
|
| + const blink::WebScreenInfo& screen_info,
|
| AccessibilityMode accessibility_mode,
|
| bool allow_partial_swap);
|
|
|
| @@ -208,13 +208,13 @@ class CONTENT_EXPORT RenderViewImpl
|
| RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
|
|
|
| // Returns the RenderViewImpl containing the given WebView.
|
| - static RenderViewImpl* FromWebView(WebKit::WebView* webview);
|
| + static RenderViewImpl* FromWebView(blink::WebView* webview);
|
|
|
| // Returns the RenderViewImpl for the given routing ID.
|
| static RenderViewImpl* FromRoutingID(int routing_id);
|
|
|
| // May return NULL when the view is closing.
|
| - WebKit::WebView* webview() const;
|
| + blink::WebView* webview() const;
|
|
|
| int history_list_offset() const { return history_list_offset_; }
|
|
|
| @@ -256,12 +256,12 @@ class CONTENT_EXPORT RenderViewImpl
|
| // Returns true if the chooser was successfully scheduled. False means we
|
| // didn't schedule anything.
|
| bool ScheduleFileChooser(const FileChooserParams& params,
|
| - WebKit::WebFileChooserCompletion* completion);
|
| + blink::WebFileChooserCompletion* completion);
|
|
|
| void LoadNavigationErrorPage(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& failed_request,
|
| - const WebKit::WebURLError& error,
|
| + blink::WebFrame* frame,
|
| + const blink::WebURLRequest& failed_request,
|
| + const blink::WebURLError& error,
|
| const std::string& html,
|
| bool replace);
|
|
|
| @@ -280,7 +280,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| // This will update the cursor appearance if it is currently over the plugin
|
| // instance.
|
| void PepperDidChangeCursor(PepperPluginInstanceImpl* instance,
|
| - const WebKit::WebCursorInfo& cursor);
|
| + const blink::WebCursorInfo& cursor);
|
|
|
| // Notifies that |instance| has received a mouse event.
|
| void PepperDidReceiveMouseEvent(PepperPluginInstanceImpl* instance);
|
| @@ -317,7 +317,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| // Simulates IME events for testing purpose.
|
| void SimulateImeSetComposition(
|
| const string16& text,
|
| - const std::vector<WebKit::WebCompositionUnderline>& underlines,
|
| + const std::vector<blink::WebCompositionUnderline>& underlines,
|
| int selection_start,
|
| int selection_end);
|
| void SimulateImeConfirmComposition(const string16& text,
|
| @@ -350,7 +350,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| #endif // ENABLE_PLUGINS
|
|
|
| void TransferActiveWheelFlingAnimation(
|
| - const WebKit::WebActiveWheelFlingParameters& params);
|
| + const blink::WebActiveWheelFlingParameters& params);
|
|
|
| // Returns true if the focused element is editable text from the perspective
|
| // of IME support (also used for on-screen keyboard). Works correctly inside
|
| @@ -402,12 +402,12 @@ class CONTENT_EXPORT RenderViewImpl
|
|
|
| virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
|
|
|
| - // WebKit::WebWidgetClient implementation ------------------------------------
|
| + // blink::WebWidgetClient implementation ------------------------------------
|
|
|
| // Most methods are handled by RenderWidget.
|
| virtual void didFocus();
|
| virtual void didBlur();
|
| - virtual void show(WebKit::WebNavigationPolicy policy);
|
| + virtual void show(blink::WebNavigationPolicy policy);
|
| virtual void runModal();
|
| virtual bool enterFullScreen();
|
| virtual void exitFullScreen();
|
| @@ -415,255 +415,255 @@ class CONTENT_EXPORT RenderViewImpl
|
| virtual void requestPointerUnlock();
|
| virtual bool isPointerLocked();
|
| virtual void didActivateCompositor(int input_handler_identifier);
|
| - virtual void didHandleGestureEvent(const WebKit::WebGestureEvent& event,
|
| + virtual void didHandleGestureEvent(const blink::WebGestureEvent& event,
|
| bool event_cancelled) OVERRIDE;
|
| virtual void initializeLayerTreeView() OVERRIDE;
|
|
|
| - // WebKit::WebViewClient implementation --------------------------------------
|
| + // blink::WebViewClient implementation --------------------------------------
|
|
|
| - virtual WebKit::WebView* createView(
|
| - WebKit::WebFrame* creator,
|
| - const WebKit::WebURLRequest& request,
|
| - const WebKit::WebWindowFeatures& features,
|
| - const WebKit::WebString& frame_name,
|
| - WebKit::WebNavigationPolicy policy,
|
| + virtual blink::WebView* createView(
|
| + blink::WebFrame* creator,
|
| + const blink::WebURLRequest& request,
|
| + const blink::WebWindowFeatures& features,
|
| + const blink::WebString& frame_name,
|
| + blink::WebNavigationPolicy policy,
|
| bool suppress_opener);
|
| // DEPRECATED
|
| - virtual WebKit::WebView* createView(
|
| - WebKit::WebFrame* creator,
|
| - const WebKit::WebURLRequest& request,
|
| - const WebKit::WebWindowFeatures& features,
|
| - const WebKit::WebString& frame_name,
|
| - WebKit::WebNavigationPolicy policy);
|
| - virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type);
|
| - virtual WebKit::WebExternalPopupMenu* createExternalPopupMenu(
|
| - const WebKit::WebPopupMenuInfo& popup_menu_info,
|
| - WebKit::WebExternalPopupMenuClient* popup_menu_client);
|
| - virtual WebKit::WebStorageNamespace* createSessionStorageNamespace();
|
| + virtual blink::WebView* createView(
|
| + blink::WebFrame* creator,
|
| + const blink::WebURLRequest& request,
|
| + const blink::WebWindowFeatures& features,
|
| + const blink::WebString& frame_name,
|
| + blink::WebNavigationPolicy policy);
|
| + virtual blink::WebWidget* createPopupMenu(blink::WebPopupType popup_type);
|
| + virtual blink::WebExternalPopupMenu* createExternalPopupMenu(
|
| + const blink::WebPopupMenuInfo& popup_menu_info,
|
| + blink::WebExternalPopupMenuClient* popup_menu_client);
|
| + virtual blink::WebStorageNamespace* createSessionStorageNamespace();
|
| virtual bool shouldReportDetailedMessageForSource(
|
| - const WebKit::WebString& source);
|
| + const blink::WebString& source);
|
| virtual void didAddMessageToConsole(
|
| - const WebKit::WebConsoleMessage& message,
|
| - const WebKit::WebString& source_name,
|
| + const blink::WebConsoleMessage& message,
|
| + const blink::WebString& source_name,
|
| unsigned source_line,
|
| - const WebKit::WebString& stack_trace);
|
| - virtual void printPage(WebKit::WebFrame* frame);
|
| - virtual WebKit::WebNotificationPresenter* notificationPresenter();
|
| + const blink::WebString& stack_trace);
|
| + virtual void printPage(blink::WebFrame* frame);
|
| + virtual blink::WebNotificationPresenter* notificationPresenter();
|
| virtual bool enumerateChosenDirectory(
|
| - const WebKit::WebString& path,
|
| - WebKit::WebFileChooserCompletion* chooser_completion);
|
| - virtual void initializeHelperPluginWebFrame(WebKit::WebHelperPlugin*);
|
| + const blink::WebString& path,
|
| + blink::WebFileChooserCompletion* chooser_completion);
|
| + virtual void initializeHelperPluginWebFrame(blink::WebHelperPlugin*);
|
| virtual void didStartLoading();
|
| virtual void didStopLoading();
|
| - virtual void didChangeLoadProgress(WebKit::WebFrame* frame,
|
| + virtual void didChangeLoadProgress(blink::WebFrame* frame,
|
| double load_progress);
|
| virtual void didCancelCompositionOnSelectionChange();
|
| virtual void didChangeSelection(bool is_selection_empty);
|
| - virtual void didExecuteCommand(const WebKit::WebString& command_name);
|
| + virtual void didExecuteCommand(const blink::WebString& command_name);
|
| virtual bool handleCurrentKeyboardEvent();
|
| - virtual WebKit::WebColorChooser* createColorChooser(
|
| - WebKit::WebColorChooserClient*, const WebKit::WebColor& initial_color);
|
| + virtual blink::WebColorChooser* createColorChooser(
|
| + blink::WebColorChooserClient*, const blink::WebColor& initial_color);
|
| virtual bool runFileChooser(
|
| - const WebKit::WebFileChooserParams& params,
|
| - WebKit::WebFileChooserCompletion* chooser_completion);
|
| - virtual void runModalAlertDialog(WebKit::WebFrame* frame,
|
| - const WebKit::WebString& message);
|
| - virtual bool runModalConfirmDialog(WebKit::WebFrame* frame,
|
| - const WebKit::WebString& message);
|
| - virtual bool runModalPromptDialog(WebKit::WebFrame* frame,
|
| - const WebKit::WebString& message,
|
| - const WebKit::WebString& default_value,
|
| - WebKit::WebString* actual_value);
|
| - virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame,
|
| + const blink::WebFileChooserParams& params,
|
| + blink::WebFileChooserCompletion* chooser_completion);
|
| + virtual void runModalAlertDialog(blink::WebFrame* frame,
|
| + const blink::WebString& message);
|
| + virtual bool runModalConfirmDialog(blink::WebFrame* frame,
|
| + const blink::WebString& message);
|
| + virtual bool runModalPromptDialog(blink::WebFrame* frame,
|
| + const blink::WebString& message,
|
| + const blink::WebString& default_value,
|
| + blink::WebString* actual_value);
|
| + virtual bool runModalBeforeUnloadDialog(blink::WebFrame* frame,
|
| bool is_reload,
|
| - const WebKit::WebString& message);
|
| + const blink::WebString& message);
|
| // DEPRECATED
|
| - virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame,
|
| - const WebKit::WebString& message);
|
| - virtual void showContextMenu(WebKit::WebFrame* frame,
|
| - const WebKit::WebContextMenuData& data);
|
| + virtual bool runModalBeforeUnloadDialog(blink::WebFrame* frame,
|
| + const blink::WebString& message);
|
| + virtual void showContextMenu(blink::WebFrame* frame,
|
| + const blink::WebContextMenuData& data);
|
| virtual void clearContextMenu();
|
| - virtual void setStatusText(const WebKit::WebString& text);
|
| - virtual void setMouseOverURL(const WebKit::WebURL& url);
|
| - virtual void setKeyboardFocusURL(const WebKit::WebURL& url);
|
| - virtual void startDragging(WebKit::WebFrame* frame,
|
| - const WebKit::WebDragData& data,
|
| - WebKit::WebDragOperationsMask mask,
|
| - const WebKit::WebImage& image,
|
| - const WebKit::WebPoint& imageOffset);
|
| + virtual void setStatusText(const blink::WebString& text);
|
| + virtual void setMouseOverURL(const blink::WebURL& url);
|
| + virtual void setKeyboardFocusURL(const blink::WebURL& url);
|
| + virtual void startDragging(blink::WebFrame* frame,
|
| + const blink::WebDragData& data,
|
| + blink::WebDragOperationsMask mask,
|
| + const blink::WebImage& image,
|
| + const blink::WebPoint& imageOffset);
|
| virtual bool acceptsLoadDrops();
|
| virtual void focusNext();
|
| virtual void focusPrevious();
|
| - virtual void focusedNodeChanged(const WebKit::WebNode& node);
|
| + virtual void focusedNodeChanged(const blink::WebNode& node);
|
| virtual void numberOfWheelEventHandlersChanged(unsigned num_handlers);
|
| virtual void didUpdateLayout();
|
| #if defined(OS_ANDROID)
|
| virtual bool didTapMultipleTargets(
|
| - const WebKit::WebGestureEvent& event,
|
| - const WebKit::WebVector<WebKit::WebRect>& target_rects);
|
| + const blink::WebGestureEvent& event,
|
| + const blink::WebVector<blink::WebRect>& target_rects);
|
| #endif
|
| virtual void navigateBackForwardSoon(int offset);
|
| virtual int historyBackListCount();
|
| virtual int historyForwardListCount();
|
| virtual void postAccessibilityEvent(
|
| - const WebKit::WebAXObject& obj, WebKit::WebAXEvent event);
|
| - virtual void didUpdateInspectorSetting(const WebKit::WebString& key,
|
| - const WebKit::WebString& value);
|
| - virtual WebKit::WebGeolocationClient* geolocationClient();
|
| - virtual WebKit::WebSpeechInputController* speechInputController(
|
| - WebKit::WebSpeechInputListener* listener);
|
| - virtual WebKit::WebSpeechRecognizer* speechRecognizer();
|
| + const blink::WebAXObject& obj, blink::WebAXEvent event);
|
| + virtual void didUpdateInspectorSetting(const blink::WebString& key,
|
| + const blink::WebString& value);
|
| + virtual blink::WebGeolocationClient* geolocationClient();
|
| + virtual blink::WebSpeechInputController* speechInputController(
|
| + blink::WebSpeechInputListener* listener);
|
| + virtual blink::WebSpeechRecognizer* speechRecognizer();
|
| virtual void zoomLimitsChanged(double minimum_level, double maximum_level);
|
| virtual void zoomLevelChanged();
|
| virtual double zoomLevelToZoomFactor(double zoom_level) const;
|
| virtual double zoomFactorToZoomLevel(double factor) const;
|
| - virtual void registerProtocolHandler(const WebKit::WebString& scheme,
|
| - const WebKit::WebString& base_url,
|
| - const WebKit::WebString& url,
|
| - const WebKit::WebString& title);
|
| - virtual WebKit::WebPageVisibilityState visibilityState() const;
|
| - virtual WebKit::WebUserMediaClient* userMediaClient();
|
| - virtual WebKit::WebMIDIClient* webMIDIClient();
|
| + virtual void registerProtocolHandler(const blink::WebString& scheme,
|
| + const blink::WebString& base_url,
|
| + const blink::WebString& url,
|
| + const blink::WebString& title);
|
| + virtual blink::WebPageVisibilityState visibilityState() const;
|
| + virtual blink::WebUserMediaClient* userMediaClient();
|
| + virtual blink::WebMIDIClient* webMIDIClient();
|
| virtual void draggableRegionsChanged();
|
|
|
| #if defined(OS_ANDROID)
|
| - virtual void scheduleContentIntent(const WebKit::WebURL& intent);
|
| + virtual void scheduleContentIntent(const blink::WebURL& intent);
|
| virtual void cancelScheduledContentIntents();
|
| - virtual WebKit::WebContentDetectionResult detectContentAround(
|
| - const WebKit::WebHitTestResult& touch_hit);
|
| + virtual blink::WebContentDetectionResult detectContentAround(
|
| + const blink::WebHitTestResult& touch_hit);
|
|
|
| // Only used on Android since all other platforms implement
|
| // date and time input fields using MULTIPLE_FIELDS_UI
|
| - virtual bool openDateTimeChooser(const WebKit::WebDateTimeChooserParams&,
|
| - WebKit::WebDateTimeChooserCompletion*);
|
| - virtual void didScrollWithKeyboard(const WebKit::WebSize& delta);
|
| + virtual bool openDateTimeChooser(const blink::WebDateTimeChooserParams&,
|
| + blink::WebDateTimeChooserCompletion*);
|
| + virtual void didScrollWithKeyboard(const blink::WebSize& delta);
|
| #endif
|
|
|
| - // WebKit::WebFrameClient implementation -------------------------------------
|
| -
|
| - virtual WebKit::WebMediaPlayer* createMediaPlayer(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURL& url,
|
| - WebKit::WebMediaPlayerClient* client);
|
| - virtual WebKit::WebCookieJar* cookieJar(WebKit::WebFrame* frame);
|
| - virtual void didAccessInitialDocument(WebKit::WebFrame* frame);
|
| - virtual void didDisownOpener(WebKit::WebFrame* frame);
|
| - virtual void frameDetached(WebKit::WebFrame* frame);
|
| - virtual void willClose(WebKit::WebFrame* frame);
|
| + // blink::WebFrameClient implementation -------------------------------------
|
| +
|
| + virtual blink::WebMediaPlayer* createMediaPlayer(
|
| + blink::WebFrame* frame,
|
| + const blink::WebURL& url,
|
| + blink::WebMediaPlayerClient* client);
|
| + virtual blink::WebCookieJar* cookieJar(blink::WebFrame* frame);
|
| + virtual void didAccessInitialDocument(blink::WebFrame* frame);
|
| + virtual void didDisownOpener(blink::WebFrame* frame);
|
| + virtual void frameDetached(blink::WebFrame* frame);
|
| + virtual void willClose(blink::WebFrame* frame);
|
| virtual void didMatchCSS(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebVector<WebKit::WebString>& newly_matching_selectors,
|
| - const WebKit::WebVector<WebKit::WebString>& stopped_matching_selectors);
|
| + blink::WebFrame* frame,
|
| + const blink::WebVector<blink::WebString>& newly_matching_selectors,
|
| + const blink::WebVector<blink::WebString>& stopped_matching_selectors);
|
|
|
| // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass.
|
| - virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(
|
| - WebKit::WebFrame* frame,
|
| - WebKit::WebDataSource::ExtraData* extraData,
|
| - const WebKit::WebURLRequest& request,
|
| - WebKit::WebNavigationType type,
|
| - WebKit::WebNavigationPolicy default_policy,
|
| + virtual blink::WebNavigationPolicy decidePolicyForNavigation(
|
| + blink::WebFrame* frame,
|
| + blink::WebDataSource::ExtraData* extraData,
|
| + const blink::WebURLRequest& request,
|
| + blink::WebNavigationType type,
|
| + blink::WebNavigationPolicy default_policy,
|
| bool is_redirect);
|
| // DEPRECATED.
|
| - virtual WebKit::WebNavigationPolicy decidePolicyForNavigation(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& request,
|
| - WebKit::WebNavigationType type,
|
| - WebKit::WebNavigationPolicy default_policy,
|
| + virtual blink::WebNavigationPolicy decidePolicyForNavigation(
|
| + blink::WebFrame* frame,
|
| + const blink::WebURLRequest& request,
|
| + blink::WebNavigationType type,
|
| + blink::WebNavigationPolicy default_policy,
|
| bool is_redirect);
|
| - virtual void willSendSubmitEvent(WebKit::WebFrame* frame,
|
| - const WebKit::WebFormElement& form);
|
| - virtual void willSubmitForm(WebKit::WebFrame* frame,
|
| - const WebKit::WebFormElement& form);
|
| - virtual void didCreateDataSource(WebKit::WebFrame* frame,
|
| - WebKit::WebDataSource* datasource);
|
| - virtual void didStartProvisionalLoad(WebKit::WebFrame* frame);
|
| + virtual void willSendSubmitEvent(blink::WebFrame* frame,
|
| + const blink::WebFormElement& form);
|
| + virtual void willSubmitForm(blink::WebFrame* frame,
|
| + const blink::WebFormElement& form);
|
| + virtual void didCreateDataSource(blink::WebFrame* frame,
|
| + blink::WebDataSource* datasource);
|
| + virtual void didStartProvisionalLoad(blink::WebFrame* frame);
|
| virtual void didReceiveServerRedirectForProvisionalLoad(
|
| - WebKit::WebFrame* frame);
|
| - virtual void didFailProvisionalLoad(WebKit::WebFrame* frame,
|
| - const WebKit::WebURLError& error);
|
| - virtual void didCommitProvisionalLoad(WebKit::WebFrame* frame,
|
| + blink::WebFrame* frame);
|
| + virtual void didFailProvisionalLoad(blink::WebFrame* frame,
|
| + const blink::WebURLError& error);
|
| + virtual void didCommitProvisionalLoad(blink::WebFrame* frame,
|
| bool is_new_navigation);
|
| - virtual void didClearWindowObject(WebKit::WebFrame* frame);
|
| - virtual void didCreateDocumentElement(WebKit::WebFrame* frame);
|
| - virtual void didReceiveTitle(WebKit::WebFrame* frame,
|
| - const WebKit::WebString& title,
|
| - WebKit::WebTextDirection direction);
|
| - virtual void didChangeIcon(WebKit::WebFrame*,
|
| - WebKit::WebIconURL::Type);
|
| - virtual void didFinishDocumentLoad(WebKit::WebFrame* frame);
|
| - virtual void didHandleOnloadEvents(WebKit::WebFrame* frame);
|
| - virtual void didFailLoad(WebKit::WebFrame* frame,
|
| - const WebKit::WebURLError& error);
|
| - virtual void didFinishLoad(WebKit::WebFrame* frame);
|
| - virtual void didNavigateWithinPage(WebKit::WebFrame* frame,
|
| + virtual void didClearWindowObject(blink::WebFrame* frame);
|
| + virtual void didCreateDocumentElement(blink::WebFrame* frame);
|
| + virtual void didReceiveTitle(blink::WebFrame* frame,
|
| + const blink::WebString& title,
|
| + blink::WebTextDirection direction);
|
| + virtual void didChangeIcon(blink::WebFrame*,
|
| + blink::WebIconURL::Type);
|
| + virtual void didFinishDocumentLoad(blink::WebFrame* frame);
|
| + virtual void didHandleOnloadEvents(blink::WebFrame* frame);
|
| + virtual void didFailLoad(blink::WebFrame* frame,
|
| + const blink::WebURLError& error);
|
| + virtual void didFinishLoad(blink::WebFrame* frame);
|
| + virtual void didNavigateWithinPage(blink::WebFrame* frame,
|
| bool is_new_navigation);
|
| - virtual void didUpdateCurrentHistoryItem(WebKit::WebFrame* frame);
|
| - virtual void willSendRequest(WebKit::WebFrame* frame,
|
| + virtual void didUpdateCurrentHistoryItem(blink::WebFrame* frame);
|
| + virtual void willSendRequest(blink::WebFrame* frame,
|
| unsigned identifier,
|
| - WebKit::WebURLRequest& request,
|
| - const WebKit::WebURLResponse& redirect_response);
|
| - virtual void didReceiveResponse(WebKit::WebFrame* frame,
|
| + blink::WebURLRequest& request,
|
| + const blink::WebURLResponse& redirect_response);
|
| + virtual void didReceiveResponse(blink::WebFrame* frame,
|
| unsigned identifier,
|
| - const WebKit::WebURLResponse& response);
|
| - virtual void didFinishResourceLoad(WebKit::WebFrame* frame,
|
| + const blink::WebURLResponse& response);
|
| + virtual void didFinishResourceLoad(blink::WebFrame* frame,
|
| unsigned identifier);
|
| virtual void didLoadResourceFromMemoryCache(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& request,
|
| - const WebKit::WebURLResponse&);
|
| - virtual void didDisplayInsecureContent(WebKit::WebFrame* frame);
|
| + blink::WebFrame* frame,
|
| + const blink::WebURLRequest& request,
|
| + const blink::WebURLResponse&);
|
| + virtual void didDisplayInsecureContent(blink::WebFrame* frame);
|
| virtual void didRunInsecureContent(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebSecurityOrigin& origin,
|
| - const WebKit::WebURL& target);
|
| - virtual void didExhaustMemoryAvailableForScript(WebKit::WebFrame* frame);
|
| - virtual void didCreateScriptContext(WebKit::WebFrame* frame,
|
| + blink::WebFrame* frame,
|
| + const blink::WebSecurityOrigin& origin,
|
| + const blink::WebURL& target);
|
| + virtual void didExhaustMemoryAvailableForScript(blink::WebFrame* frame);
|
| + virtual void didCreateScriptContext(blink::WebFrame* frame,
|
| v8::Handle<v8::Context>,
|
| int extension_group,
|
| int world_id);
|
| - virtual void willReleaseScriptContext(WebKit::WebFrame* frame,
|
| + virtual void willReleaseScriptContext(blink::WebFrame* frame,
|
| v8::Handle<v8::Context>,
|
| int world_id);
|
| - virtual void didChangeScrollOffset(WebKit::WebFrame* frame);
|
| - virtual void willInsertBody(WebKit::WebFrame* frame);
|
| - virtual void didFirstVisuallyNonEmptyLayout(WebKit::WebFrame*);
|
| - virtual void didChangeContentsSize(WebKit::WebFrame* frame,
|
| - const WebKit::WebSize& size);
|
| + virtual void didChangeScrollOffset(blink::WebFrame* frame);
|
| + virtual void willInsertBody(blink::WebFrame* frame);
|
| + virtual void didFirstVisuallyNonEmptyLayout(blink::WebFrame*);
|
| + virtual void didChangeContentsSize(blink::WebFrame* frame,
|
| + const blink::WebSize& size);
|
| virtual void reportFindInPageMatchCount(int request_id,
|
| int count,
|
| bool final_update);
|
| virtual void reportFindInPageSelection(int request_id,
|
| int active_match_ordinal,
|
| - const WebKit::WebRect& sel);
|
| + const blink::WebRect& sel);
|
| virtual void requestStorageQuota(
|
| - WebKit::WebFrame* frame,
|
| - WebKit::WebStorageQuotaType type,
|
| + blink::WebFrame* frame,
|
| + blink::WebStorageQuotaType type,
|
| unsigned long long requested_size,
|
| - WebKit::WebStorageQuotaCallbacks* callbacks);
|
| + blink::WebStorageQuotaCallbacks* callbacks);
|
| virtual void willOpenSocketStream(
|
| - WebKit::WebSocketStreamHandle* handle);
|
| - virtual void willStartUsingPeerConnectionHandler(WebKit::WebFrame* frame,
|
| - WebKit::WebRTCPeerConnectionHandler* handler);
|
| + blink::WebSocketStreamHandle* handle);
|
| + virtual void willStartUsingPeerConnectionHandler(blink::WebFrame* frame,
|
| + blink::WebRTCPeerConnectionHandler* handler);
|
| virtual bool willCheckAndDispatchMessageEvent(
|
| - WebKit::WebFrame* sourceFrame,
|
| - WebKit::WebFrame* targetFrame,
|
| - WebKit::WebSecurityOrigin targetOrigin,
|
| - WebKit::WebDOMMessageEvent event);
|
| - virtual WebKit::WebString acceptLanguages();
|
| - virtual WebKit::WebString userAgentOverride(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURL& url);
|
| - virtual WebKit::WebString doNotTrackValue(WebKit::WebFrame* frame);
|
| - virtual bool allowWebGL(WebKit::WebFrame* frame, bool default_value);
|
| + blink::WebFrame* sourceFrame,
|
| + blink::WebFrame* targetFrame,
|
| + blink::WebSecurityOrigin targetOrigin,
|
| + blink::WebDOMMessageEvent event);
|
| + virtual blink::WebString acceptLanguages();
|
| + virtual blink::WebString userAgentOverride(
|
| + blink::WebFrame* frame,
|
| + const blink::WebURL& url);
|
| + virtual blink::WebString doNotTrackValue(blink::WebFrame* frame);
|
| + virtual bool allowWebGL(blink::WebFrame* frame, bool default_value);
|
| virtual void didLoseWebGLContext(
|
| - WebKit::WebFrame* frame,
|
| + blink::WebFrame* frame,
|
| int arb_robustness_status_code);
|
|
|
| - // WebKit::WebPageSerializerClient implementation ----------------------------
|
| + // blink::WebPageSerializerClient implementation ----------------------------
|
|
|
| virtual void didSerializeDataForFrame(
|
| - const WebKit::WebURL& frame_url,
|
| - const WebKit::WebCString& data,
|
| + const blink::WebURL& frame_url,
|
| + const blink::WebCString& data,
|
| PageSerializationStatus status) OVERRIDE;
|
|
|
| // RenderView implementation -------------------------------------------------
|
| @@ -674,14 +674,14 @@ class CONTENT_EXPORT RenderViewImpl
|
| virtual gfx::Size GetSize() const OVERRIDE;
|
| virtual WebPreferences& GetWebkitPreferences() OVERRIDE;
|
| virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE;
|
| - virtual WebKit::WebView* GetWebView() OVERRIDE;
|
| - virtual WebKit::WebNode GetFocusedNode() const OVERRIDE;
|
| - virtual WebKit::WebNode GetContextMenuNode() const OVERRIDE;
|
| - virtual bool IsEditableNode(const WebKit::WebNode& node) const OVERRIDE;
|
| - virtual WebKit::WebPlugin* CreatePlugin(
|
| - WebKit::WebFrame* frame,
|
| + virtual blink::WebView* GetWebView() OVERRIDE;
|
| + virtual blink::WebNode GetFocusedNode() const OVERRIDE;
|
| + virtual blink::WebNode GetContextMenuNode() const OVERRIDE;
|
| + virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE;
|
| + virtual blink::WebPlugin* CreatePlugin(
|
| + blink::WebFrame* frame,
|
| const WebPluginInfo& info,
|
| - const WebKit::WebPluginParams& params) OVERRIDE;
|
| + const blink::WebPluginParams& params) OVERRIDE;
|
| virtual void EvaluateScript(const string16& frame_xpath,
|
| const string16& jscript,
|
| int id,
|
| @@ -693,20 +693,20 @@ class CONTENT_EXPORT RenderViewImpl
|
| virtual int ShowContextMenu(ContextMenuClient* client,
|
| const ContextMenuParams& params) OVERRIDE;
|
| virtual void CancelContextMenu(int request_id) OVERRIDE;
|
| - virtual WebKit::WebPageVisibilityState GetVisibilityState() const OVERRIDE;
|
| - virtual void RunModalAlertDialog(WebKit::WebFrame* frame,
|
| - const WebKit::WebString& message) OVERRIDE;
|
| + virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE;
|
| + virtual void RunModalAlertDialog(blink::WebFrame* frame,
|
| + const blink::WebString& message) OVERRIDE;
|
| virtual void LoadURLExternally(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& request,
|
| - WebKit::WebNavigationPolicy policy) OVERRIDE;
|
| + blink::WebFrame* frame,
|
| + const blink::WebURLRequest& request,
|
| + blink::WebNavigationPolicy policy) OVERRIDE;
|
| virtual void DidStartLoading() OVERRIDE;
|
| virtual void DidStopLoading() OVERRIDE;
|
| virtual void Repaint(const gfx::Size& size) OVERRIDE;
|
| virtual void SetEditCommandForNextKeyEvent(const std::string& name,
|
| const std::string& value) OVERRIDE;
|
| virtual void ClearEditCommands() OVERRIDE;
|
| - virtual SSLStatus GetSSLStatusOfFrame(WebKit::WebFrame* frame) const OVERRIDE;
|
| + virtual SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const OVERRIDE;
|
| virtual const std::string& GetAcceptLanguages() const OVERRIDE;
|
| #if defined(OS_ANDROID)
|
| virtual void UpdateTopControlsState(TopControlsState constraints,
|
| @@ -716,9 +716,9 @@ class CONTENT_EXPORT RenderViewImpl
|
|
|
| // WebMediaPlayerDelegate implementation -----------------------
|
|
|
| - virtual void DidPlay(WebKit::WebMediaPlayer* player) OVERRIDE;
|
| - virtual void DidPause(WebKit::WebMediaPlayer* player) OVERRIDE;
|
| - virtual void PlayerGone(WebKit::WebMediaPlayer* player) OVERRIDE;
|
| + virtual void DidPlay(blink::WebMediaPlayer* player) OVERRIDE;
|
| + virtual void DidPause(blink::WebMediaPlayer* player) OVERRIDE;
|
| + virtual void PlayerGone(blink::WebMediaPlayer* player) OVERRIDE;
|
|
|
| // Please do not add your stuff randomly to the end here. If there is an
|
| // appropriate section, add it there. If not, there are some random functions
|
| @@ -744,13 +744,13 @@ class CONTENT_EXPORT RenderViewImpl
|
| virtual gfx::Vector2d GetScrollOffset() OVERRIDE;
|
| virtual void DidHandleKeyEvent() OVERRIDE;
|
| virtual bool WillHandleMouseEvent(
|
| - const WebKit::WebMouseEvent& event) OVERRIDE;
|
| + const blink::WebMouseEvent& event) OVERRIDE;
|
| virtual bool WillHandleKeyEvent(
|
| - const WebKit::WebKeyboardEvent& event) OVERRIDE;
|
| + const blink::WebKeyboardEvent& event) OVERRIDE;
|
| virtual bool WillHandleGestureEvent(
|
| - const WebKit::WebGestureEvent& event) OVERRIDE;
|
| - virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) OVERRIDE;
|
| - virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) OVERRIDE;
|
| + const blink::WebGestureEvent& event) OVERRIDE;
|
| + virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) OVERRIDE;
|
| + virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) OVERRIDE;
|
| virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const OVERRIDE;
|
| virtual void OnSetFocus(bool enable) OVERRIDE;
|
| virtual void OnWasHidden() OVERRIDE;
|
| @@ -759,7 +759,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| virtual bool ForceCompositingModeEnabled() OVERRIDE;
|
| virtual void OnImeSetComposition(
|
| const string16& text,
|
| - const std::vector<WebKit::WebCompositionUnderline>& underlines,
|
| + const std::vector<blink::WebCompositionUnderline>& underlines,
|
| int selection_start,
|
| int selection_end) OVERRIDE;
|
| virtual void OnImeConfirmComposition(const string16& text,
|
| @@ -855,22 +855,22 @@ class CONTENT_EXPORT RenderViewImpl
|
| CONNECTION_ERROR,
|
| };
|
|
|
| - static WebKit::WebReferrerPolicy GetReferrerPolicyFromRequest(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& request);
|
| + static blink::WebReferrerPolicy GetReferrerPolicyFromRequest(
|
| + blink::WebFrame* frame,
|
| + const blink::WebURLRequest& request);
|
|
|
| static Referrer GetReferrerFromRequest(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& request);
|
| + blink::WebFrame* frame,
|
| + const blink::WebURLRequest& request);
|
|
|
| static webkit_glue::WebURLResponseExtraDataImpl* GetExtraDataFromResponse(
|
| - const WebKit::WebURLResponse& response);
|
| + const blink::WebURLResponse& response);
|
|
|
| - void UpdateURL(WebKit::WebFrame* frame);
|
| - void UpdateTitle(WebKit::WebFrame* frame, const string16& title,
|
| - WebKit::WebTextDirection title_direction);
|
| - void UpdateSessionHistory(WebKit::WebFrame* frame);
|
| - void SendUpdateState(const WebKit::WebHistoryItem& item);
|
| + void UpdateURL(blink::WebFrame* frame);
|
| + void UpdateTitle(blink::WebFrame* frame, const string16& title,
|
| + blink::WebTextDirection title_direction);
|
| + void UpdateSessionHistory(blink::WebFrame* frame);
|
| + void SendUpdateState(const blink::WebHistoryItem& item);
|
|
|
| // Update current main frame's encoding and send it to browser window.
|
| // Since we want to let users see the right encoding info from menu
|
| @@ -885,13 +885,13 @@ class CONTENT_EXPORT RenderViewImpl
|
| // c) function:DidFinishDocumentLoadForFrame. When this function is
|
| // called, that means we have got whole html page. In here we should
|
| // finally get right encoding of page.
|
| - void UpdateEncoding(WebKit::WebFrame* frame,
|
| + void UpdateEncoding(blink::WebFrame* frame,
|
| const std::string& encoding_name);
|
|
|
| - void OpenURL(WebKit::WebFrame* frame,
|
| + void OpenURL(blink::WebFrame* frame,
|
| const GURL& url,
|
| const Referrer& referrer,
|
| - WebKit::WebNavigationPolicy policy);
|
| + blink::WebNavigationPolicy policy);
|
|
|
| bool RunJavaScriptMessage(JavaScriptMessageType type,
|
| const string16& message,
|
| @@ -903,7 +903,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
|
|
|
| // Called when the "pinned to left/right edge" state needs to be updated.
|
| - void UpdateScrollState(WebKit::WebFrame* frame);
|
| + void UpdateScrollState(blink::WebFrame* frame);
|
|
|
| // IPC message handlers ------------------------------------------------------
|
| //
|
| @@ -945,7 +945,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| void OnDragSourceEndedOrMoved(const gfx::Point& client_point,
|
| const gfx::Point& screen_point,
|
| bool ended,
|
| - WebKit::WebDragOperation drag_operation);
|
| + blink::WebDragOperation drag_operation);
|
| void OnDragSourceSystemDragEnded();
|
| void OnDragTargetDrop(const gfx::Point& client_pt,
|
| const gfx::Point& screen_pt,
|
| @@ -953,12 +953,12 @@ class CONTENT_EXPORT RenderViewImpl
|
| void OnDragTargetDragEnter(const DropData& drop_data,
|
| const gfx::Point& client_pt,
|
| const gfx::Point& screen_pt,
|
| - WebKit::WebDragOperationsMask operations_allowed,
|
| + blink::WebDragOperationsMask operations_allowed,
|
| int key_modifiers);
|
| void OnDragTargetDragLeave();
|
| void OnDragTargetDragOver(const gfx::Point& client_pt,
|
| const gfx::Point& screen_pt,
|
| - WebKit::WebDragOperationsMask operations_allowed,
|
| + blink::WebDragOperationsMask operations_allowed,
|
| int key_modifiers);
|
| void OnEnablePreferredSizeChangedMode();
|
| void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size);
|
| @@ -968,17 +968,17 @@ class CONTENT_EXPORT RenderViewImpl
|
| void OnExtendSelectionAndDelete(int before, int after);
|
| void OnFileChooserResponse(
|
| const std::vector<ui::SelectedFileInfo>& files);
|
| - void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&);
|
| + void OnFind(int request_id, const string16&, const blink::WebFindOptions&);
|
| void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url);
|
| void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks(
|
| const std::vector<GURL>& links,
|
| const std::vector<base::FilePath>& local_paths,
|
| const base::FilePath& local_directory_name);
|
| void OnMediaPlayerActionAt(const gfx::Point& location,
|
| - const WebKit::WebMediaPlayerAction& action);
|
| + const blink::WebMediaPlayerAction& action);
|
| void OnOrientationChangeEvent(int orientation);
|
| void OnPluginActionAt(const gfx::Point& location,
|
| - const WebKit::WebPluginAction& action);
|
| + const blink::WebPluginAction& action);
|
| void OnMoveOrResizeStarted();
|
| void OnNavigate(const ViewMsg_Navigate_Params& params);
|
| void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params);
|
| @@ -995,7 +995,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| void OnSetBackground(const SkBitmap& background);
|
| void OnSetCompositionFromExistingText(
|
| int start, int end,
|
| - const std::vector<WebKit::WebCompositionUnderline>& underlines);
|
| + const std::vector<blink::WebCompositionUnderline>& underlines);
|
| void OnExitFullscreen();
|
| void OnSetEditableSelectionOffsets(int start, int end);
|
| void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id);
|
| @@ -1048,9 +1048,9 @@ class CONTENT_EXPORT RenderViewImpl
|
| void ZoomFactorHelper(PageZoom zoom, int zoom_center_x, int zoom_center_y,
|
| float scaling_increment);
|
|
|
| - void AltErrorPageFinished(WebKit::WebFrame* frame,
|
| - const WebKit::WebURLRequest& original_request,
|
| - const WebKit::WebURLError& original_error,
|
| + void AltErrorPageFinished(blink::WebFrame* frame,
|
| + const blink::WebURLRequest& original_request,
|
| + const blink::WebURLError& original_error,
|
| const std::string& html);
|
|
|
| // Check whether the preferred size has changed.
|
| @@ -1079,25 +1079,25 @@ class CONTENT_EXPORT RenderViewImpl
|
| ErrorPageType error_type);
|
|
|
| // Locates a sub frame with given xpath
|
| - WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const;
|
| + blink::WebFrame* GetChildFrame(const string16& frame_xpath) const;
|
|
|
| // Returns the URL being loaded by the given frame's request.
|
| - GURL GetLoadingUrl(WebKit::WebFrame* frame) const;
|
| + GURL GetLoadingUrl(blink::WebFrame* frame) const;
|
|
|
| // Should only be called if this object wraps a PluginDocument.
|
| - WebKit::WebPlugin* GetWebPluginFromPluginDocument();
|
| + blink::WebPlugin* GetWebPluginFromPluginDocument();
|
|
|
| // Returns true if the |params| navigation is to an entry that has been
|
| // cropped due to a recent navigation the browser did not know about.
|
| bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params,
|
| bool is_reload);
|
|
|
| - bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame,
|
| - const WebKit::WebURLError& error,
|
| + bool MaybeLoadAlternateErrorPage(blink::WebFrame* frame,
|
| + const blink::WebURLError& error,
|
| bool replace);
|
|
|
| // Make this RenderView show an empty, unscriptable page.
|
| - void NavigateToSwappedOutURL(WebKit::WebFrame* frame);
|
| + void NavigateToSwappedOutURL(blink::WebFrame* frame);
|
|
|
| // If we initiated a navigation, this function will populate |document_state|
|
| // with the navigation information saved in OnNavigate().
|
| @@ -1115,23 +1115,23 @@ class CONTENT_EXPORT RenderViewImpl
|
| // Launch an Android content intent with the given URL.
|
| void LaunchAndroidContentIntent(const GURL& intent_url, size_t request_id);
|
|
|
| - WebKit::WebMediaPlayer* CreateAndroidWebMediaPlayer(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURL& url,
|
| - WebKit::WebMediaPlayerClient* client);
|
| + blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
|
| + blink::WebFrame* frame,
|
| + const blink::WebURL& url,
|
| + blink::WebMediaPlayerClient* client);
|
| #endif
|
|
|
| - WebKit::WebMediaPlayer* CreateWebMediaPlayerForMediaStream(
|
| - WebKit::WebFrame* frame,
|
| - const WebKit::WebURL& url,
|
| - WebKit::WebMediaPlayerClient* client);
|
| + blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream(
|
| + blink::WebFrame* frame,
|
| + const blink::WebURL& url,
|
| + blink::WebMediaPlayerClient* client);
|
|
|
| // Sends a reply to the current find operation handling if it was a
|
| // synchronous find request.
|
| void SendFindReply(int request_id,
|
| int match_count,
|
| int ordinal,
|
| - const WebKit::WebRect& selection_rect,
|
| + const blink::WebRect& selection_rect,
|
| bool final_status_update);
|
|
|
| // Returns whether |params.selection_text| should be synchronized to the
|
| @@ -1416,7 +1416,7 @@ class CONTENT_EXPORT RenderViewImpl
|
|
|
| // MediaStreamClient attached to this view; lazily initialized.
|
| MediaStreamClient* media_stream_client_;
|
| - WebKit::WebUserMediaClient* web_user_media_client_;
|
| + blink::WebUserMediaClient* web_user_media_client_;
|
|
|
| // MIDIClient attached to this view; lazily initialized.
|
| MIDIDispatcher* midi_dispatcher_;
|
| @@ -1497,7 +1497,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_;
|
|
|
| // The current directory enumeration callback
|
| - std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_;
|
| + std::map<int, blink::WebFileChooserCompletion*> enumeration_completions_;
|
| int enumeration_completion_id_;
|
|
|
| // Reports load progress to the browser.
|
| @@ -1516,7 +1516,7 @@ class CONTENT_EXPORT RenderViewImpl
|
| scoped_ptr<ExternalPopupMenu> external_popup_menu_;
|
|
|
| // The node that the context menu was pressed over.
|
| - WebKit::WebNode context_menu_node_;
|
| + blink::WebNode context_menu_node_;
|
|
|
| // All the registered observers. We expect this list to be small, so vector
|
| // is fine.
|
|
|