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

Side by Side Diff: public/testing/WebTestDelegate.h

Issue 16020003: Blink-side Device Motion API testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed window-property layout test Created 7 years, 5 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
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 21 matching lines...) Expand all
32 #define WebTestDelegate_h 32 #define WebTestDelegate_h
33 33
34 #include "public/platform/WebString.h" 34 #include "public/platform/WebString.h"
35 #include "public/platform/WebURL.h" 35 #include "public/platform/WebURL.h"
36 #include "public/platform/WebVector.h" 36 #include "public/platform/WebVector.h"
37 #include <string> 37 #include <string>
38 38
39 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE 39 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
40 40
41 namespace WebKit { 41 namespace WebKit {
42 class WebDeviceMotionData;
42 class WebFrame; 43 class WebFrame;
43 class WebGamepads; 44 class WebGamepads;
44 class WebHistoryItem; 45 class WebHistoryItem;
45 struct WebRect; 46 struct WebRect;
46 struct WebSize; 47 struct WebSize;
47 struct WebURLError; 48 struct WebURLError;
48 } 49 }
49 50
50 namespace WebTestRunner { 51 namespace WebTestRunner {
51 52
52 struct WebPreferences; 53 struct WebPreferences;
53 class WebTask; 54 class WebTask;
54 class WebTestProxyBase; 55 class WebTestProxyBase;
55 56
56 class WebTestDelegate { 57 class WebTestDelegate {
57 public: 58 public:
58 // Set and clear the edit command to execute on the next call to 59 // Set and clear the edit command to execute on the next call to
59 // WebViewClient::handleCurrentKeyboardEvent(). 60 // WebViewClient::handleCurrentKeyboardEvent().
60 virtual void clearEditCommand() = 0; 61 virtual void clearEditCommand() = 0;
61 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0; 62 virtual void setEditCommand(const std::string& name, const std::string& valu e) = 0;
62 63
63 // Set the gamepads to return from Platform::sampleGamepads(). 64 // Set the gamepads to return from Platform::sampleGamepads().
64 virtual void setGamepadData(const WebKit::WebGamepads&) = 0; 65 virtual void setGamepadData(const WebKit::WebGamepads&) = 0;
65 66
67 virtual void setDeviceMotionData(const WebKit::WebDeviceMotionData&) = 0;
68
66 // Add a message to the text dump for the layout test. 69 // Add a message to the text dump for the layout test.
67 virtual void printMessage(const std::string& message) = 0; 70 virtual void printMessage(const std::string& message) = 0;
68 71
69 // The delegate takes ownership of the WebTask objects and is responsible 72 // The delegate takes ownership of the WebTask objects and is responsible
70 // for deleting them. 73 // for deleting them.
71 virtual void postTask(WebTask*) = 0; 74 virtual void postTask(WebTask*) = 0;
72 virtual void postDelayedTask(WebTask*, long long ms) = 0; 75 virtual void postDelayedTask(WebTask*, long long ms) = 0;
73 76
74 // Register a new isolated filesystem with the given files, and return the 77 // Register a new isolated filesystem with the given files, and return the
75 // new filesystem id. 78 // new filesystem id.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual bool allowExternalPages() = 0; 161 virtual bool allowExternalPages() = 0;
159 162
160 // Returns the back/forward history for the WebView associated with the 163 // Returns the back/forward history for the WebView associated with the
161 // given WebTestProxyBase as well as the index of the current entry. 164 // given WebTestProxyBase as well as the index of the current entry.
162 virtual void captureHistoryForWindow(WebTestProxyBase*, WebKit::WebVector<We bKit::WebHistoryItem>*, size_t* currentEntryIndex) = 0; 165 virtual void captureHistoryForWindow(WebTestProxyBase*, WebKit::WebVector<We bKit::WebHistoryItem>*, size_t* currentEntryIndex) = 0;
163 }; 166 };
164 167
165 } 168 }
166 169
167 #endif // WebTestDelegate_h 170 #endif // WebTestDelegate_h
OLDNEW
« no previous file with comments | « Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698