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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef WebTestProxy_h | 31 #ifndef WebTestProxy_h |
32 #define WebTestProxy_h | 32 #define WebTestProxy_h |
33 | 33 |
34 #include "WebTask.h" | 34 #include "WebTask.h" |
35 #include "WebTestCommon.h" | 35 #include "WebTestCommon.h" |
36 #include "public/platform/WebRect.h" | 36 #include "public/platform/WebRect.h" |
37 #include "public/platform/WebURLError.h" | 37 #include "public/platform/WebURLError.h" |
38 #include "public/platform/WebURLRequest.h" | 38 #include "public/platform/WebURLRequest.h" |
39 #include "public/web/WebAXEnums.h" | 39 #include "public/web/WebAXEnums.h" |
40 #include "public/web/WebAccessibilityNotification.h" | |
41 #include "public/web/WebDOMMessageEvent.h" | 40 #include "public/web/WebDOMMessageEvent.h" |
42 #include "public/web/WebDataSource.h" | 41 #include "public/web/WebDataSource.h" |
43 #include "public/web/WebDragOperation.h" | 42 #include "public/web/WebDragOperation.h" |
44 #include "public/web/WebEditingAction.h" | 43 #include "public/web/WebEditingAction.h" |
45 #include "public/web/WebIconURL.h" | 44 #include "public/web/WebIconURL.h" |
46 #include "public/web/WebNavigationPolicy.h" | 45 #include "public/web/WebNavigationPolicy.h" |
47 #include "public/web/WebNavigationType.h" | 46 #include "public/web/WebNavigationType.h" |
48 #include "public/web/WebSecurityOrigin.h" | 47 #include "public/web/WebSecurityOrigin.h" |
49 #include "public/web/WebTextAffinity.h" | 48 #include "public/web/WebTextAffinity.h" |
50 #include "public/web/WebTextDirection.h" | 49 #include "public/web/WebTextDirection.h" |
51 #include <map> | 50 #include <map> |
52 #include <memory> | 51 #include <memory> |
53 #include <string> | 52 #include <string> |
54 | 53 |
55 namespace WebKit { | 54 namespace WebKit { |
56 class WebAccessibilityObject; | 55 class WebAXObject; |
57 class WebAudioDevice; | 56 class WebAudioDevice; |
58 class WebCachedURLRequest; | 57 class WebCachedURLRequest; |
59 class WebColorChooser; | 58 class WebColorChooser; |
60 class WebColorChooserClient; | 59 class WebColorChooserClient; |
61 class WebDataSource; | 60 class WebDataSource; |
62 class WebDeviceOrientationClient; | 61 class WebDeviceOrientationClient; |
63 class WebDeviceOrientationClientMock; | 62 class WebDeviceOrientationClientMock; |
64 class WebDragData; | 63 class WebDragData; |
65 class WebFrame; | 64 class WebFrame; |
66 class WebGeolocationClient; | 65 class WebGeolocationClient; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 protected: | 151 protected: |
153 WebTestProxyBase(); | 152 WebTestProxyBase(); |
154 ~WebTestProxyBase(); | 153 ~WebTestProxyBase(); |
155 | 154 |
156 void didInvalidateRect(const WebKit::WebRect&); | 155 void didInvalidateRect(const WebKit::WebRect&); |
157 void didScrollRect(int, int, const WebKit::WebRect&); | 156 void didScrollRect(int, int, const WebKit::WebRect&); |
158 void scheduleAnimation(); | 157 void scheduleAnimation(); |
159 void setWindowRect(const WebKit::WebRect&); | 158 void setWindowRect(const WebKit::WebRect&); |
160 void show(WebKit::WebNavigationPolicy); | 159 void show(WebKit::WebNavigationPolicy); |
161 void didAutoResize(const WebKit::WebSize&); | 160 void didAutoResize(const WebKit::WebSize&); |
162 void postAccessibilityEvent(const WebKit::WebAccessibilityObject&, WebKit::W
ebAXEvent); | 161 void postAccessibilityEvent(const WebKit::WebAXObject&, WebKit::WebAXEvent); |
163 void startDragging(WebKit::WebFrame*, const WebKit::WebDragData&, WebKit::We
bDragOperationsMask, const WebKit::WebImage&, const WebKit::WebPoint&); | 162 void startDragging(WebKit::WebFrame*, const WebKit::WebDragData&, WebKit::We
bDragOperationsMask, const WebKit::WebImage&, const WebKit::WebPoint&); |
164 bool shouldBeginEditing(const WebKit::WebRange&); | 163 bool shouldBeginEditing(const WebKit::WebRange&); |
165 bool shouldEndEditing(const WebKit::WebRange&); | 164 bool shouldEndEditing(const WebKit::WebRange&); |
166 bool shouldInsertNode(const WebKit::WebNode&, const WebKit::WebRange&, WebKi
t::WebEditingAction); | 165 bool shouldInsertNode(const WebKit::WebNode&, const WebKit::WebRange&, WebKi
t::WebEditingAction); |
167 bool shouldInsertText(const WebKit::WebString& text, const WebKit::WebRange&
, WebKit::WebEditingAction); | 166 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); | 167 bool shouldChangeSelectedRange(const WebKit::WebRange& fromRange, const WebK
it::WebRange& toRange, WebKit::WebTextAffinity, bool stillSelecting); |
169 bool shouldDeleteRange(const WebKit::WebRange&); | 168 bool shouldDeleteRange(const WebKit::WebRange&); |
170 bool shouldApplyStyle(const WebKit::WebString& style, const WebKit::WebRange
&); | 169 bool shouldApplyStyle(const WebKit::WebString& style, const WebKit::WebRange
&); |
171 void didBeginEditing(); | 170 void didBeginEditing(); |
172 void didChangeSelection(bool isEmptySelection); | 171 void didChangeSelection(bool isEmptySelection); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 virtual void show(WebKit::WebNavigationPolicy policy) | 301 virtual void show(WebKit::WebNavigationPolicy policy) |
303 { | 302 { |
304 WebTestProxyBase::show(policy); | 303 WebTestProxyBase::show(policy); |
305 Base::show(policy); | 304 Base::show(policy); |
306 } | 305 } |
307 virtual void didAutoResize(const WebKit::WebSize& newSize) | 306 virtual void didAutoResize(const WebKit::WebSize& newSize) |
308 { | 307 { |
309 WebTestProxyBase::didAutoResize(newSize); | 308 WebTestProxyBase::didAutoResize(newSize); |
310 Base::didAutoResize(newSize); | 309 Base::didAutoResize(newSize); |
311 } | 310 } |
312 virtual void postAccessibilityEvent(const WebKit::WebAccessibilityObject& ob
ject, WebKit::WebAXEvent event) | 311 virtual void postAccessibilityEvent(const WebKit::WebAXObject& object, WebKi
t::WebAXEvent event) |
313 { | 312 { |
314 WebTestProxyBase::postAccessibilityEvent(object, event); | 313 WebTestProxyBase::postAccessibilityEvent(object, event); |
315 Base::postAccessibilityEvent(object, event); | 314 Base::postAccessibilityEvent(object, event); |
316 } | 315 } |
317 virtual void startDragging(WebKit::WebFrame* frame, const WebKit::WebDragDat
a& data, WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, cons
t WebKit::WebPoint& point) | 316 virtual void startDragging(WebKit::WebFrame* frame, const WebKit::WebDragDat
a& data, WebKit::WebDragOperationsMask mask, const WebKit::WebImage& image, cons
t WebKit::WebPoint& point) |
318 { | 317 { |
319 WebTestProxyBase::startDragging(frame, data, mask, image, point); | 318 WebTestProxyBase::startDragging(frame, data, mask, image, point); |
320 // Don't forward this call to Base because we don't want to do a real dr
ag-and-drop. | 319 // Don't forward this call to Base because we don't want to do a real dr
ag-and-drop. |
321 } | 320 } |
322 virtual bool shouldBeginEditing(const WebKit::WebRange& range) | 321 virtual bool shouldBeginEditing(const WebKit::WebRange& range) |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 } | 585 } |
587 virtual WebKit::WebColorChooser* createColorChooser(WebKit::WebColorChooserC
lient* client, const WebKit::WebColor& color) | 586 virtual WebKit::WebColorChooser* createColorChooser(WebKit::WebColorChooserC
lient* client, const WebKit::WebColor& color) |
588 { | 587 { |
589 return WebTestProxyBase::createColorChooser(client, color); | 588 return WebTestProxyBase::createColorChooser(client, color); |
590 } | 589 } |
591 }; | 590 }; |
592 | 591 |
593 } | 592 } |
594 | 593 |
595 #endif // WebTestProxy_h | 594 #endif // WebTestProxy_h |
OLD | NEW |