Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Side by Side Diff: components/test_runner/mock_color_chooser.h

Issue 1360123005: Enforce marking "override" for functions overriding Blink in components/test_runner/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_ 6 #define COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/test_runner/web_task.h" 9 #include "components/test_runner/web_task.h"
10 #include "third_party/WebKit/public/web/WebColorChooser.h" 10 #include "third_party/WebKit/public/web/WebColorChooser.h"
11 #include "third_party/WebKit/public/web/WebColorChooserClient.h" 11 #include "third_party/WebKit/public/web/WebColorChooserClient.h"
12 12
13 namespace test_runner { 13 namespace test_runner {
14 14
15 class WebTestDelegate; 15 class WebTestDelegate;
16 class WebTestProxyBase; 16 class WebTestProxyBase;
17 17
18 class MockColorChooser : public blink::WebColorChooser { 18 class MockColorChooser : public blink::WebColorChooser {
19 public: 19 public:
20 MockColorChooser(blink::WebColorChooserClient* client, 20 MockColorChooser(blink::WebColorChooserClient* client,
21 WebTestDelegate* delegate, 21 WebTestDelegate* delegate,
22 WebTestProxyBase* proxy); 22 WebTestProxyBase* proxy);
23 virtual ~MockColorChooser(); 23 ~MockColorChooser() override;
24 24
25 // blink::WebColorChooser implementation. 25 // blink::WebColorChooser implementation.
26 virtual void setSelectedColor(const blink::WebColor color) override; 26 void setSelectedColor(const blink::WebColor color) override;
27 virtual void endChooser() override; 27 void endChooser() override;
28 28
29 void InvokeDidEndChooser(); 29 void InvokeDidEndChooser();
30 WebTaskList* mutable_task_list() { return &task_list_; } 30 WebTaskList* mutable_task_list() { return &task_list_; }
31 31
32 private: 32 private:
33 blink::WebColorChooserClient* client_; 33 blink::WebColorChooserClient* client_;
34 WebTestDelegate* delegate_; 34 WebTestDelegate* delegate_;
35 WebTestProxyBase* proxy_; 35 WebTestProxyBase* proxy_;
36 WebTaskList task_list_; 36 WebTaskList task_list_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(MockColorChooser); 38 DISALLOW_COPY_AND_ASSIGN(MockColorChooser);
39 }; 39 };
40 40
41 } // namespace test_runner 41 } // namespace test_runner
42 42
43 #endif // COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_ 43 #endif // COMPONENTS_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_
OLDNEW
« no previous file with comments | « components/test_runner/app_banner_client.h ('k') | components/test_runner/mock_credential_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698