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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 #include "content/public/browser/browser_plugin_guest_manager.h" | 60 #include "content/public/browser/browser_plugin_guest_manager.h" |
61 #include "content/public/browser/browser_thread.h" | 61 #include "content/public/browser/browser_thread.h" |
62 #include "content/public/browser/native_web_keyboard_event.h" | 62 #include "content/public/browser/native_web_keyboard_event.h" |
63 #include "content/public/browser/render_widget_host.h" | 63 #include "content/public/browser/render_widget_host.h" |
64 #include "content/public/browser/render_widget_host_view_frame_subscriber.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/web/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" |
75 #import "ui/base/cocoa/fullscreen_window_manager.h" | 75 #import "ui/base/cocoa/fullscreen_window_manager.h" |
76 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" | 76 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" |
77 #include "ui/base/layout.h" | 77 #include "ui/base/layout.h" |
78 #include "ui/compositor/compositor.h" | 78 #include "ui/compositor/compositor.h" |
79 #include "ui/compositor/layer.h" | 79 #include "ui/compositor/layer.h" |
80 #include "ui/display/display.h" | 80 #include "ui/display/display.h" |
(...skipping 3339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3420 | 3420 |
3421 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3421 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3422 // regions that are not draggable. (See ControlRegionView in | 3422 // regions that are not draggable. (See ControlRegionView in |
3423 // native_app_window_cocoa.mm). This requires the render host view to be | 3423 // native_app_window_cocoa.mm). This requires the render host view to be |
3424 // draggable by default. | 3424 // draggable by default. |
3425 - (BOOL)mouseDownCanMoveWindow { | 3425 - (BOOL)mouseDownCanMoveWindow { |
3426 return YES; | 3426 return YES; |
3427 } | 3427 } |
3428 | 3428 |
3429 @end | 3429 @end |
OLD | NEW |