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

Side by Side Diff: content/public/browser/devtools_frontend_host_delegate.h

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam's comments addressed Created 9 years 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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 namespace IPC {
12 class Message;
13 }
14
15 namespace content { 11 namespace content {
16 12
17 // Clients that want to use default DevTools front-end implementation should 13 // Clients that want to use default DevTools front-end implementation should
18 // implement this interface to provide access to the embedding browser from 14 // implement this interface to provide access to the embedding browser from
19 // the front-end. 15 // the front-end.
20 class DevToolsFrontendWindowDelegate { 16 class DevToolsFrontendHostDelegate {
21 public: 17 public:
22 virtual ~DevToolsFrontendWindowDelegate() {} 18 virtual ~DevToolsFrontendHostDelegate() {}
23
24 // Routes message to the corresponding agent.
25 virtual void ForwardToDevToolsAgent(const IPC::Message& message) = 0;
26 19
27 // Should bring DevTools window to front. 20 // Should bring DevTools window to front.
28 virtual void ActivateWindow() = 0; 21 virtual void ActivateWindow() = 0;
29 22
30 // Closes DevTools front-end window. 23 // Closes DevTools front-end window.
31 virtual void CloseWindow() = 0; 24 virtual void CloseWindow() = 0;
32 25
33 // Moves DevTols front-end windo. 26 // Moves DevTols front-end windo.
34 virtual void MoveWindow(int x, int y) = 0; 27 virtual void MoveWindow(int x, int y) = 0;
35 28
36 // Attaches DevTools front-end to the inspected page. 29 // Attaches DevTools front-end to the inspected page.
37 virtual void DockWindow() = 0; 30 virtual void DockWindow() = 0;
38 31
39 // Detaches DevTools front-end from the inspected page and places it in its 32 // Detaches DevTools front-end from the inspected page and places it in its
40 // own window. 33 // own window.
41 virtual void UndockWindow() = 0; 34 virtual void UndockWindow() = 0;
42 35
43 // Shows "Save As..." dialog to save |content|. 36 // Shows "Save As..." dialog to save |content|.
44 virtual void SaveToFile(const std::string& suggested_file_name, 37 virtual void SaveToFile(const std::string& suggested_file_name,
45 const std::string& content) = 0; 38 const std::string& content) = 0;
39
40
41 // This method is called when tab inspected by this devtools frontend is
42 // closing.
43 virtual void InspectedTabClosing() = 0;
44
45 // This method is called when tab inspected by this devtools frontend is
46 // navigating to |url|.
47 virtual void FrameNavigating(const std::string& url) = 0;
48
49 // Invoked when tab inspected by this devtools frontend is replaced by
50 // another tab. This is triggered by TabStripModel::ReplaceTabContentsAt.
51 virtual void TabReplaced(TabContents* new_tab) = 0;
46 }; 52 };
47 53
48 } // namespace content 54 } // namespace content
49 55
50 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_DELEGATE_H_ 56 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/devtools_client_host.h ('k') | content/public/browser/devtools_frontend_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698