diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 15:48:09 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-13 15:48:09 +0000 |
commit | a0262433028ad421a7bc4cec99354e58069de872 (patch) | |
tree | 8df39b9a04a398be513d3a837e1cecd385cf996f /content/public | |
parent | e550214a7d080f514dfeef7e2851345aa6a76669 (diff) | |
download | chromium_src-a0262433028ad421a7bc4cec99354e58069de872.zip chromium_src-a0262433028ad421a7bc4cec99354e58069de872.tar.gz chromium_src-a0262433028ad421a7bc4cec99354e58069de872.tar.bz2 |
TabContents -> WebContentsImpl, part 8.
"Detab" content/browser/debugger.
BUG=105875
TEST=no change
Review URL: http://codereview.chromium.org/10065017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r-- | content/public/browser/devtools_client_host.h | 17 | ||||
-rw-r--r-- | content/public/browser/devtools_frontend_host_delegate.h | 21 | ||||
-rw-r--r-- | content/public/browser/devtools_manager.h | 5 |
3 files changed, 22 insertions, 21 deletions
diff --git a/content/public/browser/devtools_client_host.h b/content/public/browser/devtools_client_host.h index 19ca75a..6c9a218 100644 --- a/content/public/browser/devtools_client_host.h +++ b/content/public/browser/devtools_client_host.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -32,17 +32,16 @@ class CONTENT_EXPORT DevToolsClientHost { // Dispatches given message on the front-end. virtual void DispatchOnInspectorFrontend(const std::string& message) = 0; - // This method is called when tab inspected by this devtools client is - // closing. - virtual void InspectedTabClosing() = 0; + // This method is called when the contents inspected by this devtools client + // is closing. + virtual void InspectedContentsClosing() = 0; - // This method is called when tab inspected by this devtools client is - // navigating to |url|. + // This method is called when the contents inspected by this devtools client + // is navigating to |url|. virtual void FrameNavigating(const std::string& url) = 0; - // Invoked when a tab is replaced by another tab. This is triggered by - // TabStripModel::ReplaceTabContentsAt. - virtual void TabReplaced(WebContents* new_tab) = 0; + // Invoked when the contents are replaced by another contents. + virtual void ContentsReplaced(WebContents* new_contents) = 0; // Creates DevToolsClientHost for TabContents containing default DevTools // frontend implementation. diff --git a/content/public/browser/devtools_frontend_host_delegate.h b/content/public/browser/devtools_frontend_host_delegate.h index fdda3f1..50a95df 100644 --- a/content/public/browser/devtools_frontend_host_delegate.h +++ b/content/public/browser/devtools_frontend_host_delegate.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 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. @@ -36,7 +36,7 @@ class DevToolsFrontendHostDelegate { // Specifies side for devtools to dock to. virtual void SetDockSide(const std::string& side) = 0; - // Opens given |url| in the new tab. + // Opens given |url| in a new contents. virtual void OpenInNewTab(const std::string& url) = 0; // Saves given |content| associated with the given |url|. Optionally showing @@ -45,17 +45,18 @@ class DevToolsFrontendHostDelegate { const std::string& content, bool save_as) = 0; - // This method is called when tab inspected by this devtools frontend is - // closing. - virtual void InspectedTabClosing() = 0; + // This method is called when the contents inspected by this devtools frontend + // is closing. + virtual void InspectedContentsClosing() = 0; - // This method is called when tab inspected by this devtools frontend is - // navigating to |url|. + // This method is called when the contents inspected by this devtools frontend + // is navigating to |url|. virtual void FrameNavigating(const std::string& url) = 0; - // Invoked when tab inspected by this devtools frontend is replaced by - // another tab. This is triggered by TabStripModel::ReplaceTabContentsAt. - virtual void TabReplaced(WebContents* new_tab) = 0; + // Invoked when the contents inspected by this devtools frontend is replaced + // by another contents. This is triggered by + // TabStripModel::ReplaceTabContentsAt. + virtual void ContentsReplaced(WebContents* new_contents) = 0; }; } // namespace content diff --git a/content/public/browser/devtools_manager.h b/content/public/browser/devtools_manager.h index f6029ce..5311c3e 100644 --- a/content/public/browser/devtools_manager.h +++ b/content/public/browser/devtools_manager.h @@ -34,9 +34,10 @@ class CONTENT_EXPORT DevToolsManager { virtual bool DispatchOnInspectorBackend(DevToolsClientHost* from, const std::string& message) = 0; - // Invoked when a tab is replaced by another tab. This is triggered by + // Invoked when contents is replaced by another contents. This is triggered by // TabStripModel::ReplaceTabContentsAt. - virtual void TabReplaced(WebContents* old_tab, WebContents* new_tab) = 0; + virtual void ContentsReplaced(WebContents* old_contents, + WebContents* new_contents) = 0; // Closes all open developer tools windows. virtual void CloseAllClientHosts() = 0; |