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

Side by Side Diff: webkit/support/mock_webclipboard_impl.h

Issue 16739016: Use a direct include of strings headers in webkit/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missing include from ordering Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file mocks out just enough of the WebClipboard API for running the 5 // This file mocks out just enough of the WebClipboard API for running the
6 // webkit tests. This is so we can run webkit tests without them sharing a 6 // webkit tests. This is so we can run webkit tests without them sharing a
7 // clipboard, which allows for running them in parallel and having the tests 7 // clipboard, which allows for running them in parallel and having the tests
8 // not interact with actual user actions. 8 // not interact with actual user actions.
9 9
10 #ifndef WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ 10 #ifndef WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_
11 #define WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ 11 #define WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_
12 12
13 #include <map> 13 #include <map>
14 14
15 #include "base/string16.h" 15 #include "base/strings/string16.h"
16 #include "third_party/WebKit/public/platform/WebClipboard.h" 16 #include "third_party/WebKit/public/platform/WebClipboard.h"
17 #include "third_party/WebKit/public/platform/WebDragData.h" 17 #include "third_party/WebKit/public/platform/WebDragData.h"
18 #include "third_party/WebKit/public/platform/WebImage.h" 18 #include "third_party/WebKit/public/platform/WebImage.h"
19 19
20 class MockWebClipboardImpl : public WebKit::WebClipboard { 20 class MockWebClipboardImpl : public WebKit::WebClipboard {
21 public: 21 public:
22 MockWebClipboardImpl(); 22 MockWebClipboardImpl();
23 virtual ~MockWebClipboardImpl(); 23 virtual ~MockWebClipboardImpl();
24 24
25 virtual bool isFormatAvailable(WebKit::WebClipboard::Format format, 25 virtual bool isFormatAvailable(WebKit::WebClipboard::Format format,
(...skipping 25 matching lines...) Expand all
51 void clear(); 51 void clear();
52 52
53 WebKit::WebString m_plainText; 53 WebKit::WebString m_plainText;
54 WebKit::WebString m_htmlText; 54 WebKit::WebString m_htmlText;
55 WebKit::WebImage m_image; 55 WebKit::WebImage m_image;
56 std::map<base::string16, base::string16> m_customData; 56 std::map<base::string16, base::string16> m_customData;
57 bool m_writeSmartPaste; 57 bool m_writeSmartPaste;
58 }; 58 };
59 59
60 #endif // WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_ 60 #endif // WEBKIT_SUPPORT_MOCK_WEBCLIPBOARD_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/renderer/media/test_response_generator.cc ('k') | webkit/support/mock_webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698