| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 virtual bool OnMessageReceived(const IPC::Message& msg); | 308 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 309 | 309 |
| 310 // WebKit::WebWidgetClient implementation ------------------------------------ | 310 // WebKit::WebWidgetClient implementation ------------------------------------ |
| 311 | 311 |
| 312 // Most methods are handled by RenderWidget. | 312 // Most methods are handled by RenderWidget. |
| 313 virtual void didFocus(); | 313 virtual void didFocus(); |
| 314 virtual void didBlur(); | 314 virtual void didBlur(); |
| 315 virtual void show(WebKit::WebNavigationPolicy policy); | 315 virtual void show(WebKit::WebNavigationPolicy policy); |
| 316 virtual void runModal(); | 316 virtual void runModal(); |
| 317 virtual bool enterFullScreen(); |
| 318 virtual void exitFullScreen(); |
| 317 | 319 |
| 318 // WebKit::WebViewClient implementation -------------------------------------- | 320 // WebKit::WebViewClient implementation -------------------------------------- |
| 319 | 321 |
| 320 virtual WebKit::WebView* createView( | 322 virtual WebKit::WebView* createView( |
| 321 WebKit::WebFrame* creator, | 323 WebKit::WebFrame* creator, |
| 322 const WebKit::WebURLRequest& request, | 324 const WebKit::WebURLRequest& request, |
| 323 const WebKit::WebWindowFeatures& features, | 325 const WebKit::WebWindowFeatures& features, |
| 324 const WebKit::WebString& frame_name); | 326 const WebKit::WebString& frame_name); |
| 325 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 327 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
| 326 virtual WebKit::WebWidget* createPopupMenu( | 328 virtual WebKit::WebWidget* createPopupMenu( |
| (...skipping 29 matching lines...) Expand all Loading... |
| 356 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, | 358 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, |
| 357 const WebKit::WebString& message); | 359 const WebKit::WebString& message); |
| 358 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, | 360 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, |
| 359 const WebKit::WebString& message, | 361 const WebKit::WebString& message, |
| 360 const WebKit::WebString& default_value, | 362 const WebKit::WebString& default_value, |
| 361 WebKit::WebString* actual_value); | 363 WebKit::WebString* actual_value); |
| 362 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame, | 364 virtual bool runModalBeforeUnloadDialog(WebKit::WebFrame* frame, |
| 363 const WebKit::WebString& message); | 365 const WebKit::WebString& message); |
| 364 virtual void showContextMenu(WebKit::WebFrame* frame, | 366 virtual void showContextMenu(WebKit::WebFrame* frame, |
| 365 const WebKit::WebContextMenuData& data); | 367 const WebKit::WebContextMenuData& data); |
| 366 virtual bool supportsFullscreen(); | 368 virtual void enterFullscreen(); |
| 367 virtual void enterFullscreenForNode(const WebKit::WebNode&); | 369 virtual void exitFullscreen(); |
| 368 virtual void exitFullscreenForNode(const WebKit::WebNode&); | |
| 369 virtual void enterFullscreen() OVERRIDE; | |
| 370 virtual void exitFullscreen() OVERRIDE; | |
| 371 virtual void setStatusText(const WebKit::WebString& text); | 370 virtual void setStatusText(const WebKit::WebString& text); |
| 372 virtual void setMouseOverURL(const WebKit::WebURL& url); | 371 virtual void setMouseOverURL(const WebKit::WebURL& url); |
| 373 virtual void setKeyboardFocusURL(const WebKit::WebURL& url); | 372 virtual void setKeyboardFocusURL(const WebKit::WebURL& url); |
| 374 virtual void startDragging(const WebKit::WebDragData& data, | 373 virtual void startDragging(const WebKit::WebDragData& data, |
| 375 WebKit::WebDragOperationsMask mask, | 374 WebKit::WebDragOperationsMask mask, |
| 376 const WebKit::WebImage& image, | 375 const WebKit::WebImage& image, |
| 377 const WebKit::WebPoint& imageOffset); | 376 const WebKit::WebPoint& imageOffset); |
| 378 virtual bool acceptsLoadDrops(); | 377 virtual bool acceptsLoadDrops(); |
| 379 virtual void focusNext(); | 378 virtual void focusNext(); |
| 380 virtual void focusPrevious(); | 379 virtual void focusPrevious(); |
| (...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 // bunch of stuff, you should probably create a helper class and put your | 1221 // bunch of stuff, you should probably create a helper class and put your |
| 1223 // data and methods on that to avoid bloating RenderView more. You can | 1222 // data and methods on that to avoid bloating RenderView more. You can |
| 1224 // use the Observer interface to filter IPC messages and receive frame change | 1223 // use the Observer interface to filter IPC messages and receive frame change |
| 1225 // notifications. | 1224 // notifications. |
| 1226 // --------------------------------------------------------------------------- | 1225 // --------------------------------------------------------------------------- |
| 1227 | 1226 |
| 1228 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1227 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1229 }; | 1228 }; |
| 1230 | 1229 |
| 1231 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1230 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |