| 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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 struct WebFileChooserParams; | 66 struct WebFileChooserParams; |
| 67 struct WebPluginParams; | 67 struct WebPluginParams; |
| 68 struct WebPoint; | 68 struct WebPoint; |
| 69 struct WebSize; | 69 struct WebSize; |
| 70 struct WebWindowFeatures; | 70 struct WebWindowFeatures; |
| 71 typedef unsigned WebColor; | 71 typedef unsigned WebColor; |
| 72 } | 72 } |
| 73 | 73 |
| 74 namespace WebTestRunner { | 74 namespace WebTestRunner { |
| 75 class MockWebSpeechRecognizer; | 75 class MockWebSpeechRecognizer; |
| 76 class SpellCheckClient; | |
| 77 class TestInterfaces; | 76 class TestInterfaces; |
| 78 class WebTestDelegate; | 77 class WebTestDelegate; |
| 79 class WebTestInterfaces; | 78 class WebTestInterfaces; |
| 80 class WebUserMediaClientMock; | 79 class WebUserMediaClientMock; |
| 81 } | 80 } |
| 82 | 81 |
| 83 namespace content { | 82 namespace content { |
| 84 | 83 |
| 85 class RenderFrame; | 84 class RenderFrame; |
| 85 class SpellCheckClient; |
| 86 | 86 |
| 87 class WebTestProxyBase : public blink::WebCompositeAndReadbackAsyncCallback { | 87 class WebTestProxyBase : public blink::WebCompositeAndReadbackAsyncCallback { |
| 88 public: | 88 public: |
| 89 void setInterfaces(WebTestRunner::WebTestInterfaces*); | 89 void setInterfaces(WebTestRunner::WebTestInterfaces*); |
| 90 void setDelegate(WebTestRunner::WebTestDelegate*); | 90 void setDelegate(WebTestRunner::WebTestDelegate*); |
| 91 void setWidget(blink::WebWidget*); | 91 void setWidget(blink::WebWidget*); |
| 92 | 92 |
| 93 void reset(); | 93 void reset(); |
| 94 | 94 |
| 95 blink::WebSpellCheckClient *spellCheckClient() const; | 95 blink::WebSpellCheckClient *spellCheckClient() const; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void DrawSelectionRect(SkCanvas* canvas); | 200 void DrawSelectionRect(SkCanvas* canvas); |
| 201 | 201 |
| 202 blink::WebWidget* webWidget(); | 202 blink::WebWidget* webWidget(); |
| 203 | 203 |
| 204 WebTestRunner::TestInterfaces* m_testInterfaces; | 204 WebTestRunner::TestInterfaces* m_testInterfaces; |
| 205 ::WebTestRunner::WebTestDelegate* m_delegate; | 205 ::WebTestRunner::WebTestDelegate* m_delegate; |
| 206 blink::WebWidget* m_webWidget; | 206 blink::WebWidget* m_webWidget; |
| 207 | 207 |
| 208 WebTestRunner::WebTaskList m_taskList; | 208 WebTestRunner::WebTaskList m_taskList; |
| 209 | 209 |
| 210 scoped_ptr<WebTestRunner::SpellCheckClient> m_spellcheck; | 210 scoped_ptr<SpellCheckClient> m_spellcheck; |
| 211 scoped_ptr<WebTestRunner::WebUserMediaClientMock> m_userMediaClient; | 211 scoped_ptr<WebTestRunner::WebUserMediaClientMock> m_userMediaClient; |
| 212 | 212 |
| 213 // Painting. | 213 // Painting. |
| 214 scoped_ptr<SkCanvas> m_canvas; | 214 scoped_ptr<SkCanvas> m_canvas; |
| 215 blink::WebRect m_paintRect; | 215 blink::WebRect m_paintRect; |
| 216 bool m_isPainting; | 216 bool m_isPainting; |
| 217 bool m_animateScheduled; | 217 bool m_animateScheduled; |
| 218 std::map<unsigned, std::string> m_resourceIdentifierMap; | 218 std::map<unsigned, std::string> m_resourceIdentifierMap; |
| 219 std::map<unsigned, blink::WebURLRequest> m_requestMap; | 219 std::map<unsigned, blink::WebURLRequest> m_requestMap; |
| 220 base::Callback<void(const SkBitmap&)> m_compositeAndReadbackCallback; | 220 base::Callback<void(const SkBitmap&)> m_compositeAndReadbackCallback; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 WebTestProxyBase::postSpellCheckEvent(eventName); | 371 WebTestProxyBase::postSpellCheckEvent(eventName); |
| 372 } | 372 } |
| 373 | 373 |
| 374 private: | 374 private: |
| 375 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); | 375 DISALLOW_COPY_AND_ASSIGN(WebTestProxy); |
| 376 }; | 376 }; |
| 377 | 377 |
| 378 } // namespace content | 378 } // namespace content |
| 379 | 379 |
| 380 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ | 380 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_ |
| OLD | NEW |