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 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "base/metrics/histogram.h" | 23 #include "base/metrics/histogram.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "base/strings/sys_string_conversions.h" | 26 #include "base/strings/sys_string_conversions.h" |
27 #include "base/strings/utf_string_conversions.h" | 27 #include "base/strings/utf_string_conversions.h" |
28 #include "base/sys_info.h" | 28 #include "base/sys_info.h" |
29 #import "content/browser/accessibility/browser_accessibility_cocoa.h" | 29 #import "content/browser/accessibility/browser_accessibility_cocoa.h" |
30 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" | 30 #include "content/browser/accessibility/browser_accessibility_manager_mac.h" |
31 #import "content/browser/cocoa/system_hotkey_helper_mac.h" | 31 #import "content/browser/cocoa/system_hotkey_helper_mac.h" |
32 #import "content/browser/cocoa/system_hotkey_map.h" | 32 #import "content/browser/cocoa/system_hotkey_map.h" |
33 #include "content/browser/compositor/io_surface_layer_mac.h" | |
34 #include "content/browser/compositor/resize_lock.h" | 33 #include "content/browser/compositor/resize_lock.h" |
35 #include "content/browser/compositor/software_layer_mac.h" | |
36 #include "content/browser/frame_host/frame_tree.h" | 34 #include "content/browser/frame_host/frame_tree.h" |
37 #include "content/browser/frame_host/frame_tree_node.h" | 35 #include "content/browser/frame_host/frame_tree_node.h" |
38 #include "content/browser/frame_host/render_frame_host_impl.h" | 36 #include "content/browser/frame_host/render_frame_host_impl.h" |
39 #include "content/browser/gpu/compositor_util.h" | 37 #include "content/browser/gpu/compositor_util.h" |
| 38 #include "content/browser/renderer_host/render_view_host_impl.h" |
40 #include "content/browser/renderer_host/render_widget_helper.h" | 39 #include "content/browser/renderer_host/render_widget_helper.h" |
41 #include "content/browser/renderer_host/render_view_host_impl.h" | |
42 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" | 40 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" |
43 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" | 41 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" |
44 #import "content/browser/renderer_host/text_input_client_mac.h" | 42 #import "content/browser/renderer_host/text_input_client_mac.h" |
45 #include "content/common/accessibility_messages.h" | 43 #include "content/common/accessibility_messages.h" |
46 #include "content/common/edit_command.h" | 44 #include "content/common/edit_command.h" |
47 #include "content/common/gpu/gpu_messages.h" | 45 #include "content/common/gpu/gpu_messages.h" |
48 #include "content/common/gpu/surface_handle_types_mac.h" | |
49 #include "content/common/input_messages.h" | 46 #include "content/common/input_messages.h" |
50 #include "content/common/view_messages.h" | 47 #include "content/common/view_messages.h" |
51 #include "content/common/webplugin_geometry.h" | 48 #include "content/common/webplugin_geometry.h" |
52 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
53 #include "content/public/browser/native_web_keyboard_event.h" | 50 #include "content/public/browser/native_web_keyboard_event.h" |
54 #include "content/public/browser/notification_service.h" | 51 #include "content/public/browser/notification_service.h" |
55 #include "content/public/browser/notification_types.h" | 52 #include "content/public/browser/notification_types.h" |
56 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 53 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
57 #import "content/public/browser/render_widget_host_view_mac_delegate.h" | 54 #import "content/public/browser/render_widget_host_view_mac_delegate.h" |
58 #include "content/public/browser/user_metrics.h" | 55 #include "content/public/browser/user_metrics.h" |
59 #include "content/public/browser/web_contents.h" | 56 #include "content/public/browser/web_contents.h" |
60 #include "skia/ext/platform_canvas.h" | 57 #include "skia/ext/platform_canvas.h" |
61 #include "skia/ext/skia_utils_mac.h" | 58 #include "skia/ext/skia_utils_mac.h" |
62 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 59 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
63 #include "third_party/WebKit/public/web/WebInputEvent.h" | 60 #include "third_party/WebKit/public/web/WebInputEvent.h" |
64 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" | 61 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" |
65 #import "third_party/mozilla/ComplexTextInputPanel.h" | 62 #import "third_party/mozilla/ComplexTextInputPanel.h" |
66 #include "ui/base/cocoa/animation_utils.h" | 63 #include "ui/base/cocoa/animation_utils.h" |
67 #import "ui/base/cocoa/fullscreen_window_manager.h" | 64 #import "ui/base/cocoa/fullscreen_window_manager.h" |
68 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" | 65 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" |
69 #include "ui/events/keycodes/keyboard_codes.h" | |
70 #include "ui/base/layout.h" | 66 #include "ui/base/layout.h" |
71 #include "ui/compositor/compositor.h" | 67 #include "ui/compositor/compositor.h" |
72 #include "ui/compositor/layer.h" | 68 #include "ui/compositor/layer.h" |
| 69 #include "ui/compositor/mac/io_surface_layer_mac.h" |
| 70 #include "ui/compositor/mac/surface_handle_types_mac.h" |
| 71 #include "ui/events/keycodes/keyboard_codes.h" |
73 #include "ui/gfx/display.h" | 72 #include "ui/gfx/display.h" |
74 #include "ui/gfx/frame_time.h" | 73 #include "ui/gfx/frame_time.h" |
75 #include "ui/gfx/geometry/dip_util.h" | 74 #include "ui/gfx/geometry/dip_util.h" |
76 #include "ui/gfx/point.h" | 75 #include "ui/gfx/point.h" |
77 #include "ui/gfx/rect_conversions.h" | 76 #include "ui/gfx/rect_conversions.h" |
78 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 77 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
79 #include "ui/gfx/screen.h" | 78 #include "ui/gfx/screen.h" |
80 #include "ui/gfx/size_conversions.h" | 79 #include "ui/gfx/size_conversions.h" |
81 #include "ui/gl/gl_switches.h" | 80 #include "ui/gl/gl_switches.h" |
82 | 81 |
(...skipping 3288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3371 | 3370 |
3372 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3371 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3373 // regions that are not draggable. (See ControlRegionView in | 3372 // regions that are not draggable. (See ControlRegionView in |
3374 // native_app_window_cocoa.mm). This requires the render host view to be | 3373 // native_app_window_cocoa.mm). This requires the render host view to be |
3375 // draggable by default. | 3374 // draggable by default. |
3376 - (BOOL)mouseDownCanMoveWindow { | 3375 - (BOOL)mouseDownCanMoveWindow { |
3377 return YES; | 3376 return YES; |
3378 } | 3377 } |
3379 | 3378 |
3380 @end | 3379 @end |
OLD | NEW |