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 "base/bind.h" |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
9 #include "chrome/browser/chrome_page_zoom.h" | 10 #include "chrome/browser/chrome_page_zoom.h" |
10 #include "chrome/browser/favicon/favicon_tab_helper.h" | 11 #include "chrome/browser/favicon/favicon_tab_helper.h" |
11 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/panels/panel.h" | 13 #include "chrome/browser/ui/panels/panel.h" |
13 #include "chrome/browser/view_type_utils.h" | 14 #include "chrome/browser/view_type_utils.h" |
14 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/common/chrome_notification_types.h" |
15 #include "chrome/common/extensions/extension_messages.h" | 16 #include "chrome/common/extensions/extension_messages.h" |
16 #include "content/public/browser/invalidate_type.h" | 17 #include "content/public/browser/invalidate_type.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 } | 184 } |
184 | 185 |
185 void PanelHost::StopLoading() { | 186 void PanelHost::StopLoading() { |
186 content::RecordAction(UserMetricsAction("Stop")); | 187 content::RecordAction(UserMetricsAction("Stop")); |
187 web_contents_->Stop(); | 188 web_contents_->Stop(); |
188 } | 189 } |
189 | 190 |
190 void PanelHost::Zoom(content::PageZoom zoom) { | 191 void PanelHost::Zoom(content::PageZoom zoom) { |
191 chrome_page_zoom::Zoom(web_contents_.get(), zoom); | 192 chrome_page_zoom::Zoom(web_contents_.get(), zoom); |
192 } | 193 } |
OLD | NEW |