OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 unsigned symbol = static_cast<unsigned>(c); | 182 unsigned symbol = static_cast<unsigned>(c); |
183 String symbolCode = String::format("\\u%04X", symbol); | 183 String symbolCode = String::format("\\u%04X", symbol); |
184 dst.append(symbolCode); | 184 dst.append(symbolCode); |
185 } else { | 185 } else { |
186 dst.append(c); | 186 dst.append(c); |
187 } | 187 } |
188 } | 188 } |
189 return dst.toString(); | 189 return dst.toString(); |
190 } | 190 } |
191 | 191 |
192 void InspectorFrontendHost::sendMessageToBackend(const String& message) | |
193 { | |
194 if (m_client) | |
195 m_client->sendMessageToBackend(escapeUnicodeNonCharacters(message)); | |
196 } | |
197 | |
198 void InspectorFrontendHost::sendMessageToEmbedder(const String& message) | 192 void InspectorFrontendHost::sendMessageToEmbedder(const String& message) |
199 { | 193 { |
200 if (m_client) | 194 if (m_client) |
201 m_client->sendMessageToEmbedder(escapeUnicodeNonCharacters(message)); | 195 m_client->sendMessageToEmbedder(escapeUnicodeNonCharacters(message)); |
202 } | 196 } |
203 | 197 |
204 void InspectorFrontendHost::showContextMenu(Page* page, float x, float y, const
Vector<ContextMenuItem>& items) | 198 void InspectorFrontendHost::showContextMenu(Page* page, float x, float y, const
Vector<ContextMenuItem>& items) |
205 { | 199 { |
206 ASSERT(m_frontendPage); | 200 ASSERT(m_frontendPage); |
207 ScriptState* frontendScriptState = ScriptState::forMainWorld(m_frontendPage-
>deprecatedLocalMainFrame()); | 201 ScriptState* frontendScriptState = ScriptState::forMainWorld(m_frontendPage-
>deprecatedLocalMainFrame()); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 { | 244 { |
251 return m_client && m_client->isUnderTest(); | 245 return m_client && m_client->isUnderTest(); |
252 } | 246 } |
253 | 247 |
254 bool InspectorFrontendHost::isHostedMode() | 248 bool InspectorFrontendHost::isHostedMode() |
255 { | 249 { |
256 return false; | 250 return false; |
257 } | 251 } |
258 | 252 |
259 } // namespace blink | 253 } // namespace blink |
OLD | NEW |