| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 6 #define COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
| 15 #include "third_party/WebKit/public/platform/WebTaskRunner.h" | 15 #include "third_party/WebKit/public/platform/WebTaskRunner.h" |
| 16 #include "third_party/WebKit/public/platform/WebURL.h" | 16 #include "third_party/WebKit/public/platform/WebURL.h" |
| 17 #include "third_party/WebKit/public/platform/WebVector.h" | 17 #include "third_party/WebKit/public/platform/WebVector.h" |
| 18 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 18 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 19 | 19 |
| 20 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE | 20 #define WEBTESTRUNNER_NEW_HISTORY_CAPTURE |
| 21 | 21 |
| 22 namespace base { | 22 namespace base { |
| 23 class DictionaryValue; | 23 class DictionaryValue; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 class WebDeviceMotionData; | 27 class WebDeviceMotionData; |
| 28 class WebDeviceOrientationData; | 28 class WebDeviceOrientationData; |
| 29 class WebLocalFrame; | 29 class WebFrame; |
| 30 class WebGamepad; | 30 class WebGamepad; |
| 31 class WebGamepads; | 31 class WebGamepads; |
| 32 class WebHistoryItem; | 32 class WebHistoryItem; |
| 33 class WebInputEvent; | 33 class WebInputEvent; |
| 34 class WebLayer; | 34 class WebLayer; |
| 35 class WebLocalFrame; | 35 class WebLocalFrame; |
| 36 class WebMediaStream; | 36 class WebMediaStream; |
| 37 class WebPlugin; | 37 class WebPlugin; |
| 38 struct WebPluginParams; | 38 struct WebPluginParams; |
| 39 struct WebPoint; | 39 struct WebPoint; |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 const std::string& platform) = 0; | 291 const std::string& platform) = 0; |
| 292 | 292 |
| 293 virtual blink::WebPlugin* CreatePluginPlaceholder( | 293 virtual blink::WebPlugin* CreatePluginPlaceholder( |
| 294 blink::WebLocalFrame* frame, | 294 blink::WebLocalFrame* frame, |
| 295 const blink::WebPluginParams& params) = 0; | 295 const blink::WebPluginParams& params) = 0; |
| 296 | 296 |
| 297 virtual float GetDeviceScaleFactor() const = 0; | 297 virtual float GetDeviceScaleFactor() const = 0; |
| 298 | 298 |
| 299 // Run all pending idle tasks, and then run callback. | 299 // Run all pending idle tasks, and then run callback. |
| 300 virtual void RunIdleTasks(const base::Closure& callback) = 0; | 300 virtual void RunIdleTasks(const base::Closure& callback) = 0; |
| 301 |
| 302 // Forces a text input state update for the client of WebFrameWidget |
| 303 // associated with |frame|. |
| 304 virtual void ForceTextInputStateUpdate(blink::WebFrame* frame) = 0; |
| 301 }; | 305 }; |
| 302 | 306 |
| 303 } // namespace test_runner | 307 } // namespace test_runner |
| 304 | 308 |
| 305 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ | 309 #endif // COMPONENTS_TEST_RUNNER_WEB_TEST_DELEGATE_H_ |
| OLD | NEW |