summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webdevtoolsagent.h
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 03:31:55 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-17 03:31:55 +0000
commitcd1c89e833b7e67b7a7ca8799122e07b65999771 (patch)
tree8be5bb7ffacaee015edc085026d811a571fc7cc0 /webkit/glue/webdevtoolsagent.h
parentb67d748a27218fe026449cd98b1ac334c1266d4c (diff)
downloadchromium_src-cd1c89e833b7e67b7a7ca8799122e07b65999771.zip
chromium_src-cd1c89e833b7e67b7a7ca8799122e07b65999771.tar.gz
chromium_src-cd1c89e833b7e67b7a7ca8799122e07b65999771.tar.bz2
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
Diffstat (limited to 'webkit/glue/webdevtoolsagent.h')
-rw-r--r--webkit/glue/webdevtoolsagent.h62
1 files changed, 0 insertions, 62 deletions
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_