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

Side by Side Diff: content/shell/renderer/test_runner/mock_color_chooser.h

Issue 404373002: test_runner: Migrate MockColorChooser to Chromium C++ style. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 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_MOCK_COLOR_CHOOSER_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_COLOR_CHOOSER_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 content {
15 15
16 class WebTestDelegate; 16 class WebTestDelegate;
17 class WebTestProxyBase; 17 class WebTestProxyBase;
18 18
19 class MockColorChooser : public blink::WebColorChooser { 19 class MockColorChooser : public blink::WebColorChooser {
20 public: 20 public:
21 MockColorChooser(blink::WebColorChooserClient*, WebTestDelegate*, WebTestPro xyBase*); 21 MockColorChooser(blink::WebColorChooserClient* client,
22 WebTestDelegate* delegate,
23 WebTestProxyBase* proxy);
22 virtual ~MockColorChooser(); 24 virtual ~MockColorChooser();
23 25
24 // blink::WebColorChooser implementation. 26 // blink::WebColorChooser implementation.
25 virtual void setSelectedColor(const blink::WebColor) OVERRIDE; 27 virtual void setSelectedColor(const blink::WebColor color) OVERRIDE;
26 virtual void endChooser() OVERRIDE; 28 virtual void endChooser() OVERRIDE;
27 29
28 void invokeDidEndChooser(); 30 void InvokeDidEndChooser();
29 WebTaskList* mutable_task_list() { return &m_taskList; } 31 WebTaskList* mutable_task_list() { return &task_list_; }
30 32
31 private: 33 private:
32 blink::WebColorChooserClient* m_client; 34 blink::WebColorChooserClient* client_;
33 WebTestDelegate* m_delegate; 35 WebTestDelegate* delegate_;
34 WebTestProxyBase* m_proxy; 36 WebTestProxyBase* proxy_;
35 WebTaskList m_taskList; 37 WebTaskList task_list_;
36 38
37 DISALLOW_COPY_AND_ASSIGN(MockColorChooser); 39 DISALLOW_COPY_AND_ASSIGN(MockColorChooser);
38 }; 40 };
39 41
40 } // namespace content 42 } // namespace content
41 43
42 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCKCOLORCHOOSER_H_ 44 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_COLOR_CHOOSER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/MockColorChooser.cpp ('k') | content/shell/renderer/test_runner/mock_color_chooser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698