| 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/extensions/extension_host.h" | 5 #include "chrome/browser/extensions/extension_host.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 17 #include "chrome/browser/chrome_notification_types.h" | 17 #include "chrome/browser/chrome_notification_types.h" |
| 18 #include "chrome/browser/extensions/error_console/error_console.h" | 18 #include "chrome/browser/extensions/error_console/error_console.h" |
| 19 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" |
| 20 #include "chrome/browser/extensions/extension_tab_util.h" | 20 #include "chrome/browser/extensions/extension_tab_util.h" |
| 21 #include "chrome/browser/extensions/extension_web_contents_observer.h" | 21 #include "chrome/browser/extensions/extension_web_contents_observer.h" |
| 22 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 22 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
| 23 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
| 24 #include "chrome/common/extensions/extension_constants.h" | 24 #include "chrome/common/extensions/extension_constants.h" |
| 25 #include "chrome/common/extensions/extension_messages.h" | |
| 26 #include "chrome/common/render_messages.h" | 25 #include "chrome/common/render_messages.h" |
| 27 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
| 28 #include "content/public/browser/browser_context.h" | 27 #include "content/public/browser/browser_context.h" |
| 29 #include "content/public/browser/content_browser_client.h" | 28 #include "content/public/browser/content_browser_client.h" |
| 30 #include "content/public/browser/native_web_keyboard_event.h" | 29 #include "content/public/browser/native_web_keyboard_event.h" |
| 31 #include "content/public/browser/notification_service.h" | 30 #include "content/public/browser/notification_service.h" |
| 32 #include "content/public/browser/notification_source.h" | 31 #include "content/public/browser/notification_source.h" |
| 33 #include "content/public/browser/notification_types.h" | 32 #include "content/public/browser/notification_types.h" |
| 34 #include "content/public/browser/render_process_host.h" | 33 #include "content/public/browser/render_process_host.h" |
| 35 #include "content/public/browser/render_view_host.h" | 34 #include "content/public/browser/render_view_host.h" |
| 36 #include "content/public/browser/render_widget_host_view.h" | 35 #include "content/public/browser/render_widget_host_view.h" |
| 37 #include "content/public/browser/site_instance.h" | 36 #include "content/public/browser/site_instance.h" |
| 38 #include "content/public/browser/web_contents.h" | 37 #include "content/public/browser/web_contents.h" |
| 39 #include "extensions/browser/event_router.h" | 38 #include "extensions/browser/event_router.h" |
| 40 #include "extensions/browser/extension_error.h" | 39 #include "extensions/browser/extension_error.h" |
| 41 #include "extensions/browser/extension_system.h" | 40 #include "extensions/browser/extension_system.h" |
| 42 #include "extensions/browser/extensions_browser_client.h" | 41 #include "extensions/browser/extensions_browser_client.h" |
| 43 #include "extensions/browser/process_manager.h" | 42 #include "extensions/browser/process_manager.h" |
| 44 #include "extensions/browser/runtime_data.h" | 43 #include "extensions/browser/runtime_data.h" |
| 45 #include "extensions/browser/view_type_utils.h" | 44 #include "extensions/browser/view_type_utils.h" |
| 46 #include "extensions/common/extension.h" | 45 #include "extensions/common/extension.h" |
| 46 #include "extensions/common/extension_messages.h" |
| 47 #include "extensions/common/extension_urls.h" | 47 #include "extensions/common/extension_urls.h" |
| 48 #include "extensions/common/feature_switch.h" | 48 #include "extensions/common/feature_switch.h" |
| 49 #include "extensions/common/manifest_handlers/background_info.h" | 49 #include "extensions/common/manifest_handlers/background_info.h" |
| 50 #include "third_party/WebKit/public/web/WebInputEvent.h" | 50 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 51 #include "ui/base/l10n/l10n_util.h" | 51 #include "ui/base/l10n/l10n_util.h" |
| 52 #include "ui/base/window_open_disposition.h" | 52 #include "ui/base/window_open_disposition.h" |
| 53 | 53 |
| 54 using content::BrowserContext; | 54 using content::BrowserContext; |
| 55 using content::OpenURLParams; | 55 using content::OpenURLParams; |
| 56 using content::RenderProcessHost; | 56 using content::RenderProcessHost; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 bool ExtensionHost::PreHandleGestureEvent( | 473 bool ExtensionHost::PreHandleGestureEvent( |
| 474 content::WebContents* source, | 474 content::WebContents* source, |
| 475 const blink::WebGestureEvent& event) { | 475 const blink::WebGestureEvent& event) { |
| 476 // Disable pinch zooming. | 476 // Disable pinch zooming. |
| 477 return event.type == blink::WebGestureEvent::GesturePinchBegin || | 477 return event.type == blink::WebGestureEvent::GesturePinchBegin || |
| 478 event.type == blink::WebGestureEvent::GesturePinchUpdate || | 478 event.type == blink::WebGestureEvent::GesturePinchUpdate || |
| 479 event.type == blink::WebGestureEvent::GesturePinchEnd; | 479 event.type == blink::WebGestureEvent::GesturePinchEnd; |
| 480 } | 480 } |
| 481 | 481 |
| 482 } // namespace extensions | 482 } // namespace extensions |
| OLD | NEW |