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 #include "content/shell/renderer/test_runner/MockColorChooser.h" | 5 #include "content/shell/renderer/test_runner/MockColorChooser.h" |
6 | 6 |
7 #include "content/shell/renderer/test_runner/WebTestDelegate.h" | 7 #include "content/shell/renderer/test_runner/WebTestDelegate.h" |
8 #include "content/shell/renderer/test_runner/WebTestProxy.h" | 8 #include "content/shell/renderer/test_runner/WebTestProxy.h" |
9 | 9 |
10 using namespace WebTestRunner; | |
11 using namespace blink; | 10 using namespace blink; |
12 using namespace std; | 11 using namespace std; |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 namespace { | 15 namespace { |
17 class HostMethodTask : public WebMethodTask<MockColorChooser> { | 16 class HostMethodTask : public WebMethodTask<MockColorChooser> { |
18 public: | 17 public: |
19 typedef void (MockColorChooser::*CallbackMethodType)(); | 18 typedef void (MockColorChooser::*CallbackMethodType)(); |
20 HostMethodTask(MockColorChooser* object, CallbackMethodType callback) | 19 HostMethodTask(MockColorChooser* object, CallbackMethodType callback) |
(...skipping 29 matching lines...) Expand all Loading... |
50 { | 49 { |
51 m_delegate->postDelayedTask(new HostMethodTask(this, &MockColorChooser::invo
keDidEndChooser), 0); | 50 m_delegate->postDelayedTask(new HostMethodTask(this, &MockColorChooser::invo
keDidEndChooser), 0); |
52 } | 51 } |
53 | 52 |
54 void MockColorChooser::invokeDidEndChooser() | 53 void MockColorChooser::invokeDidEndChooser() |
55 { | 54 { |
56 m_client->didEndChooser(); | 55 m_client->didEndChooser(); |
57 } | 56 } |
58 | 57 |
59 } // namespace content | 58 } // namespace content |
OLD | NEW |