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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "content/public/browser/browser_thread.h" | 62 #include "content/public/browser/browser_thread.h" |
63 #include "content/public/browser/native_web_keyboard_event.h" | 63 #include "content/public/browser/native_web_keyboard_event.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 "skia/ext/platform_canvas.h" | 67 #include "skia/ext/platform_canvas.h" |
68 #include "skia/ext/skia_utils_mac.h" | 68 #include "skia/ext/skia_utils_mac.h" |
69 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 69 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
70 #include "third_party/WebKit/public/web/WebInputEvent.h" | 70 #include "third_party/WebKit/public/web/WebInputEvent.h" |
71 #import "third_party/mozilla/ComplexTextInputPanel.h" | 71 #import "third_party/mozilla/ComplexTextInputPanel.h" |
72 #include "ui/accelerated_widget_mac/surface_handle_types.h" | |
73 #include "ui/base/cocoa/animation_utils.h" | 72 #include "ui/base/cocoa/animation_utils.h" |
74 #import "ui/base/cocoa/fullscreen_window_manager.h" | 73 #import "ui/base/cocoa/fullscreen_window_manager.h" |
75 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" | 74 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" |
76 #include "ui/base/layout.h" | 75 #include "ui/base/layout.h" |
77 #include "ui/compositor/compositor.h" | 76 #include "ui/compositor/compositor.h" |
78 #include "ui/compositor/layer.h" | 77 #include "ui/compositor/layer.h" |
79 #include "ui/events/keycodes/keyboard_codes.h" | 78 #include "ui/events/keycodes/keyboard_codes.h" |
80 #include "ui/gfx/color_profile.h" | 79 #include "ui/gfx/color_profile.h" |
81 #include "ui/gfx/display.h" | 80 #include "ui/gfx/display.h" |
82 #include "ui/gfx/geometry/dip_util.h" | 81 #include "ui/gfx/geometry/dip_util.h" |
(...skipping 3352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3435 | 3434 |
3436 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3435 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3437 // regions that are not draggable. (See ControlRegionView in | 3436 // regions that are not draggable. (See ControlRegionView in |
3438 // native_app_window_cocoa.mm). This requires the render host view to be | 3437 // native_app_window_cocoa.mm). This requires the render host view to be |
3439 // draggable by default. | 3438 // draggable by default. |
3440 - (BOOL)mouseDownCanMoveWindow { | 3439 - (BOOL)mouseDownCanMoveWindow { |
3441 return YES; | 3440 return YES; |
3442 } | 3441 } |
3443 | 3442 |
3444 @end | 3443 @end |
OLD | NEW |