| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 ~WebTestProxyBase(); | 154 ~WebTestProxyBase(); |
| 155 | 155 |
| 156 void didInvalidateRect(const WebKit::WebRect&); | 156 void didInvalidateRect(const WebKit::WebRect&); |
| 157 void didScrollRect(int, int, const WebKit::WebRect&); | 157 void didScrollRect(int, int, const WebKit::WebRect&); |
| 158 void scheduleAnimation(); | 158 void scheduleAnimation(); |
| 159 void setWindowRect(const WebKit::WebRect&); | 159 void setWindowRect(const WebKit::WebRect&); |
| 160 void show(WebKit::WebNavigationPolicy); | 160 void show(WebKit::WebNavigationPolicy); |
| 161 void didAutoResize(const WebKit::WebSize&); | 161 void didAutoResize(const WebKit::WebSize&); |
| 162 void postAccessibilityEvent(const WebKit::WebAXObject&, WebKit::WebAXEvent); | 162 void postAccessibilityEvent(const WebKit::WebAXObject&, WebKit::WebAXEvent); |
| 163 void startDragging(WebKit::WebFrame*, const WebKit::WebDragData&, WebKit::We
bDragOperationsMask, const WebKit::WebImage&, const WebKit::WebPoint&); | 163 void startDragging(WebKit::WebFrame*, const WebKit::WebDragData&, WebKit::We
bDragOperationsMask, const WebKit::WebImage&, const WebKit::WebPoint&); |
| 164 bool shouldBeginEditing(const WebKit::WebRange&); | |
| 165 bool shouldEndEditing(const WebKit::WebRange&); | |
| 166 bool shouldInsertNode(const WebKit::WebNode&, const WebKit::WebRange&, WebKi
t::WebEditingAction); | |
| 167 bool shouldInsertText(const WebKit::WebString& text, const WebKit::WebRange&
, WebKit::WebEditingAction); | |
| 168 bool shouldChangeSelectedRange(const WebKit::WebRange& fromRange, const WebK
it::WebRange& toRange, WebKit::WebTextAffinity, bool stillSelecting); | |
| 169 bool shouldDeleteRange(const WebKit::WebRange&); | |
| 170 bool shouldApplyStyle(const WebKit::WebString& style, const WebKit::WebRange
&); | |
| 171 void didBeginEditing(); | |
| 172 void didChangeSelection(bool isEmptySelection); | 164 void didChangeSelection(bool isEmptySelection); |
| 173 void didChangeContents(); | 165 void didChangeContents(); |
| 174 void didEndEditing(); | 166 void didEndEditing(); |
| 175 bool createView(WebKit::WebFrame* creator, const WebKit::WebURLRequest&, con
st WebKit::WebWindowFeatures&, const WebKit::WebString& frameName, WebKit::WebNa
vigationPolicy); | 167 bool createView(WebKit::WebFrame* creator, const WebKit::WebURLRequest&, con
st WebKit::WebWindowFeatures&, const WebKit::WebString& frameName, WebKit::WebNa
vigationPolicy); |
| 176 WebKit::WebPlugin* createPlugin(WebKit::WebFrame*, const WebKit::WebPluginPa
rams&); | 168 WebKit::WebPlugin* createPlugin(WebKit::WebFrame*, const WebKit::WebPluginPa
rams&); |
| 177 void setStatusText(const WebKit::WebString&); | 169 void setStatusText(const WebKit::WebString&); |
| 178 void didStopLoading(); | 170 void didStopLoading(); |
| 179 void showContextMenu(WebKit::WebFrame*, const WebKit::WebContextMenuData&); | 171 void showContextMenu(WebKit::WebFrame*, const WebKit::WebContextMenuData&); |
| 180 WebKit::WebUserMediaClient* userMediaClient(); | 172 WebKit::WebUserMediaClient* userMediaClient(); |
| 181 void printPage(WebKit::WebFrame*); | 173 void printPage(WebKit::WebFrame*); |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 virtual void postAccessibilityEvent(const WebKit::WebAXObject& object, WebKi
t::WebAXEvent event) | 310 virtual void postAccessibilityEvent(const WebKit::WebAXObject& object, WebKi
t::WebAXEvent event) |
| 319 { | 311 { |
| 320 WebTestProxyBase::postAccessibilityEvent(object, event); | 312 WebTestProxyBase::postAccessibilityEvent(object, event); |
| 321 Base::postAccessibilityEvent(object, event); | 313 Base::postAccessibilityEvent(object, event); |
| 322 } | 314 } |
| 323 virtual void startDragging(WebKit::WebFrame* frame, const WebKit::WebDragDat
a& data, WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, cons
t WebKit::WebPoint& point) | 315 virtual void startDragging(WebKit::WebFrame* frame, const WebKit::WebDragDat
a& data, WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, cons
t WebKit::WebPoint& point) |
| 324 { | 316 { |
| 325 WebTestProxyBase::startDragging(frame, data, mask, image, point); | 317 WebTestProxyBase::startDragging(frame, data, mask, image, point); |
| 326 // Don't forward this call to Base because we don't want to do a real dr
ag-and-drop. | 318 // Don't forward this call to Base because we don't want to do a real dr
ag-and-drop. |
| 327 } | 319 } |
| 328 virtual bool shouldBeginEditing(const WebKit::WebRange& range) | |
| 329 { | |
| 330 WebTestProxyBase::shouldBeginEditing(range); | |
| 331 return Base::shouldBeginEditing(range); | |
| 332 } | |
| 333 virtual bool shouldEndEditing(const WebKit::WebRange& range) | |
| 334 { | |
| 335 WebTestProxyBase::shouldEndEditing(range); | |
| 336 return Base::shouldEndEditing(range); | |
| 337 } | |
| 338 virtual bool shouldInsertNode(const WebKit::WebNode& node, const WebKit::Web
Range& range, WebKit::WebEditingAction action) | |
| 339 { | |
| 340 WebTestProxyBase::shouldInsertNode(node, range, action); | |
| 341 return Base::shouldInsertNode(node, range, action); | |
| 342 } | |
| 343 virtual bool shouldInsertText(const WebKit::WebString& text, const WebKit::W
ebRange& range, WebKit::WebEditingAction action) | |
| 344 { | |
| 345 WebTestProxyBase::shouldInsertText(text, range, action); | |
| 346 return Base::shouldInsertText(text, range, action); | |
| 347 } | |
| 348 virtual bool shouldChangeSelectedRange(const WebKit::WebRange& fromRange, co
nst WebKit::WebRange& toRange, WebKit::WebTextAffinity affinity, bool stillSelec
ting) | |
| 349 { | |
| 350 WebTestProxyBase::shouldChangeSelectedRange(fromRange, toRange, affinity
, stillSelecting); | |
| 351 return Base::shouldChangeSelectedRange(fromRange, toRange, affinity, sti
llSelecting); | |
| 352 } | |
| 353 virtual bool shouldDeleteRange(const WebKit::WebRange& range) | |
| 354 { | |
| 355 WebTestProxyBase::shouldDeleteRange(range); | |
| 356 return Base::shouldDeleteRange(range); | |
| 357 } | |
| 358 virtual bool shouldApplyStyle(const WebKit::WebString& style, const WebKit::
WebRange& range) | |
| 359 { | |
| 360 WebTestProxyBase::shouldApplyStyle(style, range); | |
| 361 return Base::shouldApplyStyle(style, range); | |
| 362 } | |
| 363 virtual void didBeginEditing() | |
| 364 { | |
| 365 WebTestProxyBase::didBeginEditing(); | |
| 366 Base::didBeginEditing(); | |
| 367 } | |
| 368 virtual void didChangeSelection(bool isEmptySelection) | 320 virtual void didChangeSelection(bool isEmptySelection) |
| 369 { | 321 { |
| 370 WebTestProxyBase::didChangeSelection(isEmptySelection); | 322 WebTestProxyBase::didChangeSelection(isEmptySelection); |
| 371 Base::didChangeSelection(isEmptySelection); | 323 Base::didChangeSelection(isEmptySelection); |
| 372 } | 324 } |
| 373 virtual void didChangeContents() | 325 virtual void didChangeContents() |
| 374 { | 326 { |
| 375 WebTestProxyBase::didChangeContents(); | 327 WebTestProxyBase::didChangeContents(); |
| 376 Base::didChangeContents(); | 328 Base::didChangeContents(); |
| 377 } | 329 } |
| 378 virtual void didEndEditing() | |
| 379 { | |
| 380 WebTestProxyBase::didEndEditing(); | |
| 381 Base::didEndEditing(); | |
| 382 } | |
| 383 virtual WebKit::WebView* createView(WebKit::WebFrame* creator, const WebKit:
:WebURLRequest& request, const WebKit::WebWindowFeatures& features, const WebKit
::WebString& frameName, WebKit::WebNavigationPolicy policy) | 330 virtual WebKit::WebView* createView(WebKit::WebFrame* creator, const WebKit:
:WebURLRequest& request, const WebKit::WebWindowFeatures& features, const WebKit
::WebString& frameName, WebKit::WebNavigationPolicy policy) |
| 384 { | 331 { |
| 385 if (!WebTestProxyBase::createView(creator, request, features, frameName,
policy)) | 332 if (!WebTestProxyBase::createView(creator, request, features, frameName,
policy)) |
| 386 return 0; | 333 return 0; |
| 387 return Base::createView(creator, request, features, frameName, policy); | 334 return Base::createView(creator, request, features, frameName, policy); |
| 388 } | 335 } |
| 389 virtual void setStatusText(const WebKit::WebString& text) | 336 virtual void setStatusText(const WebKit::WebString& text) |
| 390 { | 337 { |
| 391 WebTestProxyBase::setStatusText(text); | 338 WebTestProxyBase::setStatusText(text); |
| 392 Base::setStatusText(text); | 339 Base::setStatusText(text); |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 539 } |
| 593 virtual bool runFileChooser(const WebKit::WebFileChooserParams& params, WebK
it::WebFileChooserCompletion* completion) | 540 virtual bool runFileChooser(const WebKit::WebFileChooserParams& params, WebK
it::WebFileChooserCompletion* completion) |
| 594 { | 541 { |
| 595 return WebTestProxyBase::runFileChooser(params, completion); | 542 return WebTestProxyBase::runFileChooser(params, completion); |
| 596 } | 543 } |
| 597 }; | 544 }; |
| 598 | 545 |
| 599 } | 546 } |
| 600 | 547 |
| 601 #endif // WebTestProxy_h | 548 #endif // WebTestProxy_h |
| OLD | NEW |