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