OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/test_runner/mock_color_chooser.h" | 5 #include "content/shell/test_runner/mock_color_chooser.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "components/test_runner/test_runner.h" | 8 #include "content/shell/test_runner/test_runner.h" |
9 #include "components/test_runner/web_test_delegate.h" | 9 #include "content/shell/test_runner/web_test_delegate.h" |
10 | 10 |
11 namespace test_runner { | 11 namespace test_runner { |
12 | 12 |
13 MockColorChooser::MockColorChooser(blink::WebColorChooserClient* client, | 13 MockColorChooser::MockColorChooser(blink::WebColorChooserClient* client, |
14 WebTestDelegate* delegate, | 14 WebTestDelegate* delegate, |
15 TestRunner* test_runner) | 15 TestRunner* test_runner) |
16 : client_(client), | 16 : client_(client), |
17 delegate_(delegate), | 17 delegate_(delegate), |
18 test_runner_(test_runner), | 18 test_runner_(test_runner), |
19 weak_factory_(this) { | 19 weak_factory_(this) { |
(...skipping 10 matching lines...) Expand all Loading... |
30 delegate_->PostDelayedTask(base::Bind(&MockColorChooser::InvokeDidEndChooser, | 30 delegate_->PostDelayedTask(base::Bind(&MockColorChooser::InvokeDidEndChooser, |
31 weak_factory_.GetWeakPtr()), | 31 weak_factory_.GetWeakPtr()), |
32 0); | 32 0); |
33 } | 33 } |
34 | 34 |
35 void MockColorChooser::InvokeDidEndChooser() { | 35 void MockColorChooser::InvokeDidEndChooser() { |
36 client_->didEndChooser(); | 36 client_->didEndChooser(); |
37 } | 37 } |
38 | 38 |
39 } // namespace test_runner | 39 } // namespace test_runner |
OLD | NEW |