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 <objc/runtime.h> | 7 #import <objc/runtime.h> |
8 #include <OpenGL/gl.h> | 8 #include <OpenGL/gl.h> |
9 #include <QuartzCore/QuartzCore.h> | 9 #include <QuartzCore/QuartzCore.h> |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "base/strings/sys_string_conversions.h" | 29 #include "base/strings/sys_string_conversions.h" |
30 #include "base/strings/utf_string_conversions.h" | 30 #include "base/strings/utf_string_conversions.h" |
31 #include "base/sys_info.h" | 31 #include "base/sys_info.h" |
32 #include "base/trace_event/trace_event.h" | 32 #include "base/trace_event/trace_event.h" |
33 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 33 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
34 #import "content/browser/accessibility/browser_accessibility_mac.h" | 34 #import "content/browser/accessibility/browser_accessibility_mac.h" |
35 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" | 35 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" |
36 #include "content/browser/bad_message.h" | 36 #include "content/browser/bad_message.h" |
37 #import "content/browser/cocoa/system_hotkey_helper_mac.h" | 37 #import "content/browser/cocoa/system_hotkey_helper_mac.h" |
38 #import "content/browser/cocoa/system_hotkey_map.h" | 38 #import "content/browser/cocoa/system_hotkey_map.h" |
39 #include "content/browser/compositor/resize_lock.h" | |
40 #include "content/browser/frame_host/frame_tree.h" | 39 #include "content/browser/frame_host/frame_tree.h" |
41 #include "content/browser/frame_host/frame_tree_node.h" | 40 #include "content/browser/frame_host/frame_tree_node.h" |
42 #include "content/browser/frame_host/render_frame_host_impl.h" | 41 #include "content/browser/frame_host/render_frame_host_impl.h" |
43 #include "content/browser/gpu/compositor_util.h" | 42 #include "content/browser/gpu/compositor_util.h" |
| 43 #import "content/browser/renderer_host/input/synthetic_gesture_target_mac.h" |
44 #include "content/browser/renderer_host/input/web_input_event_builders_mac.h" | 44 #include "content/browser/renderer_host/input/web_input_event_builders_mac.h" |
45 #include "content/browser/renderer_host/render_view_host_impl.h" | 45 #include "content/browser/renderer_host/render_view_host_impl.h" |
46 #include "content/browser/renderer_host/render_widget_helper.h" | 46 #include "content/browser/renderer_host/render_widget_helper.h" |
47 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 47 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
48 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" | 48 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" |
49 #import "content/browser/renderer_host/input/synthetic_gesture_target_mac.h" | |
50 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" | 49 #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" | 50 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" |
52 #include "content/browser/renderer_host/render_widget_resize_helper_mac.h" | 51 #include "content/browser/renderer_host/render_widget_resize_helper_mac.h" |
| 52 #include "content/browser/renderer_host/resize_lock.h" |
53 #import "content/browser/renderer_host/text_input_client_mac.h" | 53 #import "content/browser/renderer_host/text_input_client_mac.h" |
54 #include "content/common/accessibility_messages.h" | 54 #include "content/common/accessibility_messages.h" |
55 #include "content/common/edit_command.h" | 55 #include "content/common/edit_command.h" |
56 #include "content/common/input_messages.h" | 56 #include "content/common/input_messages.h" |
57 #include "content/common/site_isolation_policy.h" | 57 #include "content/common/site_isolation_policy.h" |
58 #include "content/common/view_messages.h" | 58 #include "content/common/view_messages.h" |
59 #include "content/common/webplugin_geometry.h" | 59 #include "content/common/webplugin_geometry.h" |
60 #include "content/public/browser/browser_context.h" | 60 #include "content/public/browser/browser_context.h" |
61 #include "content/public/browser/browser_plugin_guest_manager.h" | 61 #include "content/public/browser/browser_plugin_guest_manager.h" |
62 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
(...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3491 | 3491 |
3492 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3492 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3493 // regions that are not draggable. (See ControlRegionView in | 3493 // regions that are not draggable. (See ControlRegionView in |
3494 // native_app_window_cocoa.mm). This requires the render host view to be | 3494 // native_app_window_cocoa.mm). This requires the render host view to be |
3495 // draggable by default. | 3495 // draggable by default. |
3496 - (BOOL)mouseDownCanMoveWindow { | 3496 - (BOOL)mouseDownCanMoveWindow { |
3497 return YES; | 3497 return YES; |
3498 } | 3498 } |
3499 | 3499 |
3500 @end | 3500 @end |
OLD | NEW |