| 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/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "content/public/browser/notification_source.h" | 24 #include "content/public/browser/notification_source.h" |
| 25 #include "content/public/browser/notification_types.h" | 25 #include "content/public/browser/notification_types.h" |
| 26 #include "content/public/browser/render_view_host.h" | 26 #include "content/public/browser/render_view_host.h" |
| 27 #include "content/public/browser/site_instance.h" | 27 #include "content/public/browser/site_instance.h" |
| 28 #include "content/public/browser/user_metrics.h" | 28 #include "content/public/browser/user_metrics.h" |
| 29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
| 30 #include "extensions/browser/view_type_utils.h" | 30 #include "extensions/browser/view_type_utils.h" |
| 31 #include "extensions/common/extension_messages.h" | 31 #include "extensions/common/extension_messages.h" |
| 32 #include "ipc/ipc_message.h" | 32 #include "ipc/ipc_message.h" |
| 33 #include "ipc/ipc_message_macros.h" | 33 #include "ipc/ipc_message_macros.h" |
| 34 #include "ui/gfx/geometry/rect.h" |
| 34 #include "ui/gfx/image/image.h" | 35 #include "ui/gfx/image/image.h" |
| 35 #include "ui/gfx/rect.h" | |
| 36 | 36 |
| 37 using base::UserMetricsAction; | 37 using base::UserMetricsAction; |
| 38 | 38 |
| 39 PanelHost::PanelHost(Panel* panel, Profile* profile) | 39 PanelHost::PanelHost(Panel* panel, Profile* profile) |
| 40 : panel_(panel), | 40 : panel_(panel), |
| 41 profile_(profile), | 41 profile_(profile), |
| 42 extension_function_dispatcher_(profile, this), | 42 extension_function_dispatcher_(profile, this), |
| 43 weak_factory_(this) { | 43 weak_factory_(this) { |
| 44 } | 44 } |
| 45 | 45 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 264 } |
| 265 | 265 |
| 266 void PanelHost::StopLoading() { | 266 void PanelHost::StopLoading() { |
| 267 content::RecordAction(UserMetricsAction("Stop")); | 267 content::RecordAction(UserMetricsAction("Stop")); |
| 268 web_contents_->Stop(); | 268 web_contents_->Stop(); |
| 269 } | 269 } |
| 270 | 270 |
| 271 void PanelHost::Zoom(content::PageZoom zoom) { | 271 void PanelHost::Zoom(content::PageZoom zoom) { |
| 272 chrome_page_zoom::Zoom(web_contents_.get(), zoom); | 272 chrome_page_zoom::Zoom(web_contents_.get(), zoom); |
| 273 } | 273 } |
| OLD | NEW |