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

Side by Side Diff: Source/core/inspector/InspectorFrontendHost.cpp

Issue 23289002: Introduce InspectorFrontendHost.sendMessageToFrontendHost. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 4 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 /* 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 void InspectorFrontendHost::close(const String&) 226 void InspectorFrontendHost::close(const String&)
227 { 227 {
228 } 228 }
229 229
230 void InspectorFrontendHost::sendMessageToBackend(const String& message) 230 void InspectorFrontendHost::sendMessageToBackend(const String& message)
231 { 231 {
232 if (m_client) 232 if (m_client)
233 m_client->sendMessageToBackend(message); 233 m_client->sendMessageToBackend(message);
234 } 234 }
235 235
236 void InspectorFrontendHost::sendMessageToFrontendHost(const String& message)
237 {
238 if (m_client)
239 m_client->sendMessageToFrontendHost(message);
240 }
241
236 void InspectorFrontendHost::showContextMenu(Event* event, const Vector<ContextMe nuItem>& items) 242 void InspectorFrontendHost::showContextMenu(Event* event, const Vector<ContextMe nuItem>& items)
237 { 243 {
238 if (!event) 244 if (!event)
239 return; 245 return;
240 246
241 ASSERT(m_frontendPage); 247 ASSERT(m_frontendPage);
242 ScriptState* frontendScriptState = mainWorldScriptState(m_frontendPage->main Frame()); 248 ScriptState* frontendScriptState = mainWorldScriptState(m_frontendPage->main Frame());
243 ScriptObject frontendApiObject; 249 ScriptObject frontendApiObject;
244 if (!ScriptGlobalObject::get(frontendScriptState, "InspectorFrontendAPI", fr ontendApiObject)) { 250 if (!ScriptGlobalObject::get(frontendScriptState, "InspectorFrontendAPI", fr ontendApiObject)) {
245 ASSERT_NOT_REACHED(); 251 ASSERT_NOT_REACHED();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 { 348 {
343 return false; 349 return false;
344 } 350 }
345 351
346 String InspectorFrontendHost::hiddenPanels() 352 String InspectorFrontendHost::hiddenPanels()
347 { 353 {
348 return ""; 354 return "";
349 } 355 }
350 356
351 } // namespace WebCore 357 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698