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_MOCKCOLORCHOOSER_H_ | 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ |
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ | 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "content/shell/renderer/test_runner/TestCommon.h" | 9 #include "content/shell/renderer/test_runner/TestCommon.h" |
10 #include "content/shell/renderer/test_runner/WebTask.h" | 10 #include "content/shell/renderer/test_runner/WebTask.h" |
11 #include "third_party/WebKit/public/web/WebColorChooser.h" | 11 #include "third_party/WebKit/public/web/WebColorChooser.h" |
12 #include "third_party/WebKit/public/web/WebColorChooserClient.h" | 12 #include "third_party/WebKit/public/web/WebColorChooserClient.h" |
13 | 13 |
14 namespace content { | 14 namespace WebTestRunner { |
15 class WebTestProxyBase; | 15 class WebTestDelegate; |
16 } | 16 } |
17 | 17 |
18 namespace WebTestRunner { | 18 namespace content { |
19 | 19 |
20 class WebTestDelegate; | 20 class WebTestProxyBase; |
21 | 21 |
22 class MockColorChooser : public blink::WebColorChooser { | 22 class MockColorChooser : public blink::WebColorChooser { |
23 public: | 23 public: |
24 MockColorChooser(blink::WebColorChooserClient*, WebTestDelegate*, content::W
ebTestProxyBase*); | 24 MockColorChooser(blink::WebColorChooserClient*, WebTestRunner::WebTestDelega
te*, content::WebTestProxyBase*); |
25 virtual ~MockColorChooser(); | 25 virtual ~MockColorChooser(); |
26 | 26 |
27 // blink::WebColorChooser implementation. | 27 // blink::WebColorChooser implementation. |
28 virtual void setSelectedColor(const blink::WebColor) OVERRIDE; | 28 virtual void setSelectedColor(const blink::WebColor) OVERRIDE; |
29 virtual void endChooser() OVERRIDE; | 29 virtual void endChooser() OVERRIDE; |
30 | 30 |
31 void invokeDidEndChooser(); | 31 void invokeDidEndChooser(); |
32 WebTaskList* taskList() { return &m_taskList; } | 32 WebTestRunner::WebTaskList* taskList() { return &m_taskList; } |
33 | 33 |
34 private: | 34 private: |
35 blink::WebColorChooserClient* m_client; | 35 blink::WebColorChooserClient* m_client; |
36 WebTestDelegate* m_delegate; | 36 WebTestRunner::WebTestDelegate* m_delegate; |
37 content::WebTestProxyBase* m_proxy; | 37 content::WebTestProxyBase* m_proxy; |
38 WebTaskList m_taskList; | 38 WebTestRunner::WebTaskList m_taskList; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(MockColorChooser); | 40 DISALLOW_COPY_AND_ASSIGN(MockColorChooser); |
41 }; | 41 }; |
42 | 42 |
43 } | 43 } // namespace content |
44 | 44 |
45 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ | 45 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ |
OLD | NEW |