diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 06:55:31 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-22 06:55:31 +0000 |
commit | be1f56ab53f9f07d981859fb1dc55ac1d7980226 (patch) | |
tree | 73ab07f324bb0a2a4aa0e4b3caa5f0325bce18f5 /chrome/browser/ui/tab_contents | |
parent | 89a6e72128eac7c64a7351de54a3aa2598e9e337 (diff) | |
download | chromium_src-be1f56ab53f9f07d981859fb1dc55ac1d7980226.zip chromium_src-be1f56ab53f9f07d981859fb1dc55ac1d7980226.tar.gz chromium_src-be1f56ab53f9f07d981859fb1dc55ac1d7980226.tar.bz2 |
Move a bunch of methods from TabContents into the WebContents interface. This change either moves CamelCase functions into the interface, or renames existing unix_hacker functions to CamelCase.
BUG=98716
Review URL: http://codereview.chromium.org/8949061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115495 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/tab_contents')
-rw-r--r-- | chrome/browser/ui/tab_contents/core_tab_helper.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/chrome/browser/ui/tab_contents/core_tab_helper.cc b/chrome/browser/ui/tab_contents/core_tab_helper.cc index c08a420..10ecac5 100644 --- a/chrome/browser/ui/tab_contents/core_tab_helper.cc +++ b/chrome/browser/ui/tab_contents/core_tab_helper.cc @@ -26,14 +26,14 @@ string16 CoreTabHelper::GetDefaultTitle() { string16 CoreTabHelper::GetStatusText() const { if (!tab_contents()->IsLoading() || - tab_contents()->load_state().state == net::LOAD_STATE_IDLE) { + tab_contents()->GetLoadState().state == net::LOAD_STATE_IDLE) { return string16(); } - switch (tab_contents()->load_state().state) { + switch (tab_contents()->GetLoadState().state) { case net::LOAD_STATE_WAITING_FOR_DELEGATE: return l10n_util::GetStringFUTF16(IDS_LOAD_STATE_WAITING_FOR_DELEGATE, - tab_contents()->load_state().param); + tab_contents()->GetLoadState().param); case net::LOAD_STATE_WAITING_FOR_CACHE: return l10n_util::GetStringUTF16(IDS_LOAD_STATE_WAITING_FOR_CACHE); case net::LOAD_STATE_WAITING_FOR_APPCACHE: @@ -53,16 +53,17 @@ string16 CoreTabHelper::GetStatusText() const { case net::LOAD_STATE_SSL_HANDSHAKE: return l10n_util::GetStringUTF16(IDS_LOAD_STATE_SSL_HANDSHAKE); case net::LOAD_STATE_SENDING_REQUEST: - if (tab_contents()->upload_size()) + if (tab_contents()->GetUploadSize()) { return l10n_util::GetStringFUTF16Int( - IDS_LOAD_STATE_SENDING_REQUEST_WITH_PROGRESS, - static_cast<int>((100 * tab_contents()->upload_position()) / - tab_contents()->upload_size())); - else + IDS_LOAD_STATE_SENDING_REQUEST_WITH_PROGRESS, + static_cast<int>((100 * tab_contents()->GetUploadPosition()) / + tab_contents()->GetUploadSize())); + } else { return l10n_util::GetStringUTF16(IDS_LOAD_STATE_SENDING_REQUEST); + } case net::LOAD_STATE_WAITING_FOR_RESPONSE: return l10n_util::GetStringFUTF16(IDS_LOAD_STATE_WAITING_FOR_RESPONSE, - tab_contents()->load_state_host()); + tab_contents()->GetLoadStateHost()); // Ignore net::LOAD_STATE_READING_RESPONSE and net::LOAD_STATE_IDLE case net::LOAD_STATE_IDLE: case net::LOAD_STATE_READING_RESPONSE: |