OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef PagePopupClient_h | 31 #ifndef PagePopupClient_h |
32 #define PagePopupClient_h | 32 #define PagePopupClient_h |
33 | 33 |
34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
35 #include "platform/SharedBuffer.h" | 35 #include "platform/SharedBuffer.h" |
36 #include "platform/geometry/IntRect.h" | 36 #include "platform/geometry/IntRect.h" |
37 #include "wtf/text/CString.h" | 37 #include "platform/wtf/text/CString.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "platform/wtf/text/WTFString.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 class Document; | 42 class Document; |
43 class Element; | 43 class Element; |
44 class Locale; | 44 class Locale; |
45 | 45 |
46 class CORE_EXPORT PagePopupClient { | 46 class CORE_EXPORT PagePopupClient { |
47 public: | 47 public: |
48 // Provide an HTML source to the specified buffer. The HTML | 48 // Provide an HTML source to the specified buffer. The HTML |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 static void AddProperty(const char* name, const IntRect&, SharedBuffer*); | 93 static void AddProperty(const char* name, const IntRect&, SharedBuffer*); |
94 }; | 94 }; |
95 | 95 |
96 inline void PagePopupClient::AddString(const String& str, SharedBuffer* data) { | 96 inline void PagePopupClient::AddString(const String& str, SharedBuffer* data) { |
97 CString str8 = str.Utf8(); | 97 CString str8 = str.Utf8(); |
98 data->Append(str8.Data(), str8.length()); | 98 data->Append(str8.Data(), str8.length()); |
99 } | 99 } |
100 | 100 |
101 } // namespace blink | 101 } // namespace blink |
102 #endif | 102 #endif |
OLD | NEW |