From cd1c89e833b7e67b7a7ca8799122e07b65999771 Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Sat, 17 Oct 2009 03:31:55 +0000 Subject: Move WebDevToolsAgent{Delegate} into the WebKit API. Moves corresponding WebView and WebViewDelegate methods too. This uses the term "Frontend" for what was previously known as "Client" in the devtools interfaces. This is to avoid awkward "ClientClient" naming. Frontend was Pavel Feldman's suggested renaming. In a follow up patch, I will be renaming WebDevToolsClient{Delegate} to WebDevToolsFrontend{Client}. R=dglazkov BUG=24597 TEST=none Review URL: http://codereview.chromium.org/287009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29369 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webdevtoolsagent.h | 62 ------------------------------------------ 1 file changed, 62 deletions(-) delete mode 100644 webkit/glue/webdevtoolsagent.h (limited to 'webkit/glue/webdevtoolsagent.h') diff --git a/webkit/glue/webdevtoolsagent.h b/webkit/glue/webdevtoolsagent.h deleted file mode 100644 index 8186051..0000000 --- a/webkit/glue/webdevtoolsagent.h +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ -#define WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ - -#include "base/basictypes.h" - -namespace WebKit { -class WebString; -} - -// WebDevToolsAgent represents DevTools agent sitting in the Glue. It provides -// direct and delegate Apis to the host. -class WebDevToolsAgent { - public: - class Message { - public: - Message() {} - virtual ~Message() {} - virtual void Dispatch() = 0; - private: - DISALLOW_COPY_AND_ASSIGN(Message); - }; - - WebDevToolsAgent() {} - virtual ~WebDevToolsAgent() {} - - virtual void Attach() = 0; - - virtual void Detach() = 0; - - virtual void OnNavigate() = 0; - - virtual void DispatchMessageFromClient(const WebKit::WebString& class_name, - const WebKit::WebString& method_name, - const WebKit::WebString& param1, - const WebKit::WebString& param2, - const WebKit::WebString& param3) = 0; - - virtual void InspectElement(int x, int y) = 0; - - virtual void SetApuAgentEnabled(bool enabled) = 0; - - // Asynchronously executes debugger command in the render thread. - // |caller_id| will be used for sending response. - static void ExecuteDebuggerCommand(const WebKit::WebString& command, - int caller_id); - - typedef void (*MessageLoopDispatchHandler)(); - - // Installs dispatch handle that is going to be called periodically - // while on a breakpoint. - static void SetMessageLoopDispatchHandler( - MessageLoopDispatchHandler handler); - - private: - DISALLOW_COPY_AND_ASSIGN(WebDevToolsAgent); -}; - -#endif // WEBKIT_GLUE_WEBDEVTOOLSAGENT_H_ -- cgit v1.1