Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/public/WebTestProxy.h

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: made WebDeviceMotionData more "POD-ish" Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool m_isPainting; 224 bool m_isPainting;
223 std::map<unsigned, std::string> m_resourceIdentifierMap; 225 std::map<unsigned, std::string> m_resourceIdentifierMap;
224 std::map<unsigned, WebKit::WebURLRequest> m_requestMap; 226 std::map<unsigned, WebKit::WebURLRequest> m_requestMap;
225 227
226 bool m_logConsoleOutput; 228 bool m_logConsoleOutput;
227 229
228 std::auto_ptr<WebKit::WebGeolocationClientMock> m_geolocationClient; 230 std::auto_ptr<WebKit::WebGeolocationClientMock> m_geolocationClient;
229 std::auto_ptr<WebKit::WebDeviceOrientationClientMock> m_deviceOrientationCli ent; 231 std::auto_ptr<WebKit::WebDeviceOrientationClientMock> m_deviceOrientationCli ent;
230 std::auto_ptr<MockWebSpeechRecognizer> m_speechRecognizer; 232 std::auto_ptr<MockWebSpeechRecognizer> m_speechRecognizer;
231 std::auto_ptr<MockWebSpeechInputController> m_speechInputController; 233 std::auto_ptr<MockWebSpeechInputController> m_speechInputController;
234 std::auto_ptr<MockWebDeviceMotionHandler> m_deviceMotionHandler;
232 235
233 private: 236 private:
234 WebTestProxyBase(WebTestProxyBase&); 237 WebTestProxyBase(WebTestProxyBase&);
235 WebTestProxyBase& operator=(const WebTestProxyBase&); 238 WebTestProxyBase& operator=(const WebTestProxyBase&);
236 }; 239 };
237 240
238 // Use this template to inject methods into your WebViewClient/WebFrameClient 241 // Use this template to inject methods into your WebViewClient/WebFrameClient
239 // implementation required for the running layout tests. 242 // implementation required for the running layout tests.
240 template<class Base, typename T> 243 template<class Base, typename T>
241 class WebTestProxy : public Base, public WebTestProxyBase { 244 class WebTestProxy : public Base, public WebTestProxyBase {
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 { 605 {
603 if (WebTestProxyBase::willCheckAndDispatchMessageEvent(sourceFrame, targ etFrame, target, event)) 606 if (WebTestProxyBase::willCheckAndDispatchMessageEvent(sourceFrame, targ etFrame, target, event))
604 return true; 607 return true;
605 return Base::willCheckAndDispatchMessageEvent(sourceFrame, targetFrame, target, event); 608 return Base::willCheckAndDispatchMessageEvent(sourceFrame, targetFrame, target, event);
606 } 609 }
607 }; 610 };
608 611
609 } 612 }
610 613
611 #endif // WebTestProxy_h 614 #endif // WebTestProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698