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

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

Issue 10065017: TabContents -> WebContentsImpl, part 8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 // 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
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_
OLDNEW
« no previous file with comments | « content/public/browser/devtools_client_host.h ('k') | content/public/browser/devtools_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698