| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 struct WebPluginParams; | 81 struct WebPluginParams; |
| 82 struct WebPoint; | 82 struct WebPoint; |
| 83 struct WebSize; | 83 struct WebSize; |
| 84 struct WebWindowFeatures; | 84 struct WebWindowFeatures; |
| 85 } | 85 } |
| 86 | 86 |
| 87 class SkCanvas; | 87 class SkCanvas; |
| 88 | 88 |
| 89 namespace WebTestRunner { | 89 namespace WebTestRunner { |
| 90 | 90 |
| 91 class MockWebDeviceMotionHandler; |
| 91 class MockWebSpeechInputController; | 92 class MockWebSpeechInputController; |
| 92 class MockWebSpeechRecognizer; | 93 class MockWebSpeechRecognizer; |
| 93 class SpellCheckClient; | 94 class SpellCheckClient; |
| 94 class TestInterfaces; | 95 class TestInterfaces; |
| 95 class WebTestDelegate; | 96 class WebTestDelegate; |
| 96 class WebTestInterfaces; | 97 class WebTestInterfaces; |
| 97 class WebTestRunner; | 98 class WebTestRunner; |
| 98 class WebUserMediaClientMock; | 99 class WebUserMediaClientMock; |
| 99 | 100 |
| 100 class WEBTESTRUNNER_EXPORT WebTestProxyBase { | 101 class WEBTESTRUNNER_EXPORT WebTestProxyBase { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 116 | 117 |
| 117 #if WEBTESTRUNNER_IMPLEMENTATION | 118 #if WEBTESTRUNNER_IMPLEMENTATION |
| 118 void display(); | 119 void display(); |
| 119 void displayInvalidatedRegion(); | 120 void displayInvalidatedRegion(); |
| 120 void discardBackingStore(); | 121 void discardBackingStore(); |
| 121 | 122 |
| 122 WebKit::WebDeviceOrientationClientMock* deviceOrientationClientMock(); | 123 WebKit::WebDeviceOrientationClientMock* deviceOrientationClientMock(); |
| 123 WebKit::WebGeolocationClientMock* geolocationClientMock(); | 124 WebKit::WebGeolocationClientMock* geolocationClientMock(); |
| 124 MockWebSpeechInputController* speechInputControllerMock(); | 125 MockWebSpeechInputController* speechInputControllerMock(); |
| 125 MockWebSpeechRecognizer* speechRecognizerMock(); | 126 MockWebSpeechRecognizer* speechRecognizerMock(); |
| 127 MockWebDeviceMotionHandler* deviceMotionHandlerMock(); |
| 126 #endif | 128 #endif |
| 127 | 129 |
| 128 protected: | 130 protected: |
| 129 WebTestProxyBase(); | 131 WebTestProxyBase(); |
| 130 ~WebTestProxyBase(); | 132 ~WebTestProxyBase(); |
| 131 | 133 |
| 132 void didInvalidateRect(const WebKit::WebRect&); | 134 void didInvalidateRect(const WebKit::WebRect&); |
| 133 void didScrollRect(int, int, const WebKit::WebRect&); | 135 void didScrollRect(int, int, const WebKit::WebRect&); |
| 134 void scheduleAnimation(); | 136 void scheduleAnimation(); |
| 135 void setWindowRect(const WebKit::WebRect&); | 137 void setWindowRect(const WebKit::WebRect&); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 bool m_isPainting; | 223 bool m_isPainting; |
| 222 std::map<unsigned, std::string> m_resourceIdentifierMap; | 224 std::map<unsigned, std::string> m_resourceIdentifierMap; |
| 223 std::map<unsigned, WebKit::WebURLRequest> m_requestMap; | 225 std::map<unsigned, WebKit::WebURLRequest> m_requestMap; |
| 224 | 226 |
| 225 bool m_logConsoleOutput; | 227 bool m_logConsoleOutput; |
| 226 | 228 |
| 227 std::auto_ptr<WebKit::WebGeolocationClientMock> m_geolocationClient; | 229 std::auto_ptr<WebKit::WebGeolocationClientMock> m_geolocationClient; |
| 228 std::auto_ptr<WebKit::WebDeviceOrientationClientMock> m_deviceOrientationCli
ent; | 230 std::auto_ptr<WebKit::WebDeviceOrientationClientMock> m_deviceOrientationCli
ent; |
| 229 std::auto_ptr<MockWebSpeechRecognizer> m_speechRecognizer; | 231 std::auto_ptr<MockWebSpeechRecognizer> m_speechRecognizer; |
| 230 std::auto_ptr<MockWebSpeechInputController> m_speechInputController; | 232 std::auto_ptr<MockWebSpeechInputController> m_speechInputController; |
| 233 std::auto_ptr<MockWebDeviceMotionHandler> m_deviceMotionHandler; |
| 231 | 234 |
| 232 private: | 235 private: |
| 233 WebTestProxyBase(WebTestProxyBase&); | 236 WebTestProxyBase(WebTestProxyBase&); |
| 234 WebTestProxyBase& operator=(const WebTestProxyBase&); | 237 WebTestProxyBase& operator=(const WebTestProxyBase&); |
| 235 }; | 238 }; |
| 236 | 239 |
| 237 // Use this template to inject methods into your WebViewClient/WebFrameClient | 240 // Use this template to inject methods into your WebViewClient/WebFrameClient |
| 238 // implementation required for the running layout tests. | 241 // implementation required for the running layout tests. |
| 239 template<class Base, typename T> | 242 template<class Base, typename T> |
| 240 class WebTestProxy : public Base, public WebTestProxyBase { | 243 class WebTestProxy : public Base, public WebTestProxyBase { |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 { | 599 { |
| 597 if (WebTestProxyBase::willCheckAndDispatchMessageEvent(sourceFrame, targ
etFrame, target, event)) | 600 if (WebTestProxyBase::willCheckAndDispatchMessageEvent(sourceFrame, targ
etFrame, target, event)) |
| 598 return true; | 601 return true; |
| 599 return Base::willCheckAndDispatchMessageEvent(sourceFrame, targetFrame,
target, event); | 602 return Base::willCheckAndDispatchMessageEvent(sourceFrame, targetFrame,
target, event); |
| 600 } | 603 } |
| 601 }; | 604 }; |
| 602 | 605 |
| 603 } | 606 } |
| 604 | 607 |
| 605 #endif // WebTestProxy_h | 608 #endif // WebTestProxy_h |
| OLD | NEW |