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" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" | 15 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" |
16 #include "chrome/browser/extensions/window_controller.h" | 16 #include "chrome/browser/extensions/window_controller.h" |
17 #include "chrome/browser/favicon/favicon_utils.h" | 17 #include "chrome/browser/favicon/favicon_utils.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/sessions/session_tab_helper.h" | 19 #include "chrome/browser/sessions/session_tab_helper.h" |
20 #include "chrome/browser/ui/browser_navigator.h" | 20 #include "chrome/browser/ui/browser_navigator.h" |
21 #include "chrome/browser/ui/browser_navigator_params.h" | 21 #include "chrome/browser/ui/browser_navigator_params.h" |
22 #include "chrome/browser/ui/panels/panel.h" | 22 #include "chrome/browser/ui/panels/panel.h" |
23 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 23 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |