| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/panels/panel_host.h" | 5 #include "chrome/browser/ui/panels/panel_host.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 content::WebContents* PanelHost::GetAssociatedWebContents() const { | 230 content::WebContents* PanelHost::GetAssociatedWebContents() const { |
| 231 return web_contents_.get(); | 231 return web_contents_.get(); |
| 232 } | 232 } |
| 233 | 233 |
| 234 void PanelHost::Reload() { | 234 void PanelHost::Reload() { |
| 235 content::RecordAction(UserMetricsAction("Reload")); | 235 content::RecordAction(UserMetricsAction("Reload")); |
| 236 web_contents_->GetController().Reload(true); | 236 web_contents_->GetController().Reload(true); |
| 237 } | 237 } |
| 238 | 238 |
| 239 void PanelHost::ReloadIgnoringCache() { | 239 void PanelHost::ReloadBypassingCache() { |
| 240 content::RecordAction(UserMetricsAction("ReloadIgnoringCache")); | 240 content::RecordAction(UserMetricsAction("ReloadBypassingCache")); |
| 241 web_contents_->GetController().ReloadIgnoringCache(true); | 241 web_contents_->GetController().ReloadBypassingCache(true); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void PanelHost::StopLoading() { | 244 void PanelHost::StopLoading() { |
| 245 content::RecordAction(UserMetricsAction("Stop")); | 245 content::RecordAction(UserMetricsAction("Stop")); |
| 246 web_contents_->Stop(); | 246 web_contents_->Stop(); |
| 247 } | 247 } |
| 248 | 248 |
| 249 void PanelHost::Zoom(content::PageZoom zoom) { | 249 void PanelHost::Zoom(content::PageZoom zoom) { |
| 250 ui_zoom::PageZoom::Zoom(web_contents_.get(), zoom); | 250 ui_zoom::PageZoom::Zoom(web_contents_.get(), zoom); |
| 251 } | 251 } |
| OLD | NEW |