| 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 "content/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
| 6 | 6 |
| 7 #import <Carbon/Carbon.h> | 7 #import <Carbon/Carbon.h> |
| 8 #import <objc/runtime.h> | 8 #import <objc/runtime.h> |
| 9 #include <OpenGL/gl.h> | 9 #include <OpenGL/gl.h> |
| 10 #include <QuartzCore/QuartzCore.h> | 10 #include <QuartzCore/QuartzCore.h> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "content/browser/frame_host/frame_tree.h" | 40 #include "content/browser/frame_host/frame_tree.h" |
| 41 #include "content/browser/frame_host/frame_tree_node.h" | 41 #include "content/browser/frame_host/frame_tree_node.h" |
| 42 #include "content/browser/frame_host/render_frame_host_impl.h" | 42 #include "content/browser/frame_host/render_frame_host_impl.h" |
| 43 #include "content/browser/gpu/compositor_util.h" | 43 #include "content/browser/gpu/compositor_util.h" |
| 44 #import "content/browser/renderer_host/input/synthetic_gesture_target_mac.h" | 44 #import "content/browser/renderer_host/input/synthetic_gesture_target_mac.h" |
| 45 #include "content/browser/renderer_host/input/web_input_event_builders_mac.h" | 45 #include "content/browser/renderer_host/input/web_input_event_builders_mac.h" |
| 46 #include "content/browser/renderer_host/render_view_host_impl.h" | 46 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 47 #include "content/browser/renderer_host/render_widget_helper.h" | 47 #include "content/browser/renderer_host/render_widget_helper.h" |
| 48 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 48 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
| 49 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" | 49 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" |
| 50 #include "content/browser/renderer_host/render_widget_host_view_frame_subscriber
.h" |
| 50 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" | 51 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" |
| 51 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" | 52 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" |
| 52 #import "content/browser/renderer_host/text_input_client_mac.h" | 53 #import "content/browser/renderer_host/text_input_client_mac.h" |
| 53 #include "content/common/accessibility_messages.h" | 54 #include "content/common/accessibility_messages.h" |
| 54 #include "content/common/edit_command.h" | 55 #include "content/common/edit_command.h" |
| 55 #include "content/common/input_messages.h" | 56 #include "content/common/input_messages.h" |
| 56 #include "content/common/site_isolation_policy.h" | 57 #include "content/common/site_isolation_policy.h" |
| 57 #include "content/common/text_input_state.h" | 58 #include "content/common/text_input_state.h" |
| 58 #include "content/common/view_messages.h" | 59 #include "content/common/view_messages.h" |
| 59 #include "content/public/browser/browser_context.h" | 60 #include "content/public/browser/browser_context.h" |
| 60 #include "content/public/browser/browser_plugin_guest_manager.h" | 61 #include "content/public/browser/browser_plugin_guest_manager.h" |
| 61 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
| 62 #include "content/public/browser/native_web_keyboard_event.h" | 63 #include "content/public/browser/native_web_keyboard_event.h" |
| 63 #include "content/public/browser/render_widget_host.h" | 64 #include "content/public/browser/render_widget_host.h" |
| 64 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | |
| 65 #import "content/public/browser/render_widget_host_view_mac_delegate.h" | 65 #import "content/public/browser/render_widget_host_view_mac_delegate.h" |
| 66 #include "content/public/browser/web_contents.h" | 66 #include "content/public/browser/web_contents.h" |
| 67 #include "gpu/ipc/common/gpu_messages.h" | 67 #include "gpu/ipc/common/gpu_messages.h" |
| 68 #include "skia/ext/platform_canvas.h" | 68 #include "skia/ext/platform_canvas.h" |
| 69 #include "skia/ext/skia_utils_mac.h" | 69 #include "skia/ext/skia_utils_mac.h" |
| 70 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 70 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 71 #import "ui/base/clipboard/clipboard_util_mac.h" | 71 #import "ui/base/clipboard/clipboard_util_mac.h" |
| 72 #include "ui/base/cocoa/animation_utils.h" | 72 #include "ui/base/cocoa/animation_utils.h" |
| 73 #import "ui/base/cocoa/appkit_utils.h" | 73 #import "ui/base/cocoa/appkit_utils.h" |
| 74 #include "ui/base/cocoa/cocoa_base_utils.h" | 74 #include "ui/base/cocoa/cocoa_base_utils.h" |
| (...skipping 3387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3462 | 3462 |
| 3463 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3463 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
| 3464 // regions that are not draggable. (See ControlRegionView in | 3464 // regions that are not draggable. (See ControlRegionView in |
| 3465 // native_app_window_cocoa.mm). This requires the render host view to be | 3465 // native_app_window_cocoa.mm). This requires the render host view to be |
| 3466 // draggable by default. | 3466 // draggable by default. |
| 3467 - (BOOL)mouseDownCanMoveWindow { | 3467 - (BOOL)mouseDownCanMoveWindow { |
| 3468 return YES; | 3468 return YES; |
| 3469 } | 3469 } |
| 3470 | 3470 |
| 3471 @end | 3471 @end |
| OLD | NEW |