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

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

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MockColorChooser_h
6 #define MockColorChooser_h
7
8 #include "content/shell/renderer/test_runner/TestCommon.h"
9 #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"
12 #include "third_party/WebKit/public/web/WebColorChooserClient.h"
13
14 namespace WebTestRunner {
15
16 class WebTestDelegate;
17 class WebTestProxyBase;
18 class MockColorChooser : public blink::WebColorChooser, public blink::WebNonCopy able {
19 public:
20 MockColorChooser(blink::WebColorChooserClient*, WebTestDelegate*, WebTestPro xyBase*);
21 virtual ~MockColorChooser();
22
23 // blink::WebColorChooser implementation.
24 virtual void setSelectedColor(const blink::WebColor) OVERRIDE;
25 virtual void endChooser() OVERRIDE;
26
27 void invokeDidEndChooser();
28 WebTaskList* taskList() { return &m_taskList; }
29 private:
30 blink::WebColorChooserClient* m_client;
31 WebTestDelegate* m_delegate;
32 WebTestProxyBase* m_proxy;
33 WebTaskList m_taskList;
34 };
35
36 }
37
38 #endif // MockColorChooser_h
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/KeyCodeMapping.cpp ('k') | content/shell/renderer/test_runner/MockColorChooser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698