OLD | NEW |
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_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_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 |
(...skipping 18 matching lines...) Expand all Loading... |
29 // Attaches DevTools front-end to the inspected page. | 29 // Attaches DevTools front-end to the inspected page. |
30 virtual void DockWindow() = 0; | 30 virtual void DockWindow() = 0; |
31 | 31 |
32 // 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 |
33 // own window. | 33 // own window. |
34 virtual void UndockWindow() = 0; | 34 virtual void UndockWindow() = 0; |
35 | 35 |
36 // Specifies side for devtools to dock to. | 36 // Specifies side for devtools to dock to. |
37 virtual void SetDockSide(const std::string& side) = 0; | 37 virtual void SetDockSide(const std::string& side) = 0; |
38 | 38 |
39 // Opens given |url| in the new tab. | 39 // Opens given |url| in a new contents. |
40 virtual void OpenInNewTab(const std::string& url) = 0; | 40 virtual void OpenInNewTab(const std::string& url) = 0; |
41 | 41 |
42 // Saves given |content| associated with the given |url|. Optionally showing | 42 // Saves given |content| associated with the given |url|. Optionally showing |
43 // Save As dialog. | 43 // Save As dialog. |
44 virtual void SaveToFile(const std::string& url, | 44 virtual void SaveToFile(const std::string& url, |
45 const std::string& content, | 45 const std::string& content, |
46 bool save_as) = 0; | 46 bool save_as) = 0; |
47 | 47 |
48 // This method is called when tab inspected by this devtools frontend is | 48 // This method is called when the contents inspected by this devtools frontend |
49 // closing. | 49 // is closing. |
50 virtual void InspectedTabClosing() = 0; | 50 virtual void InspectedContentsClosing() = 0; |
51 | 51 |
52 // This method is called when tab inspected by this devtools frontend is | 52 // This method is called when the contents inspected by this devtools frontend |
53 // navigating to |url|. | 53 // is navigating to |url|. |
54 virtual void FrameNavigating(const std::string& url) = 0; | 54 virtual void FrameNavigating(const std::string& url) = 0; |
55 | 55 |
56 // Invoked when tab inspected by this devtools frontend is replaced by | 56 // Invoked when the contents inspected by this devtools frontend is replaced |
57 // another tab. This is triggered by TabStripModel::ReplaceTabContentsAt. | 57 // by another contents. This is triggered by |
58 virtual void TabReplaced(WebContents* new_tab) = 0; | 58 // TabStripModel::ReplaceTabContentsAt. |
| 59 virtual void ContentsReplaced(WebContents* new_contents) = 0; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace content | 62 } // namespace content |
62 | 63 |
63 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ | 64 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_HOST_DELEGATE_H_ |
OLD | NEW |