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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "ui/accelerated_widget_mac/io_surface_layer.h" | 65 #include "ui/accelerated_widget_mac/io_surface_layer.h" |
66 #include "ui/accelerated_widget_mac/surface_handle_types.h" | 66 #include "ui/accelerated_widget_mac/surface_handle_types.h" |
67 #include "ui/base/cocoa/animation_utils.h" | 67 #include "ui/base/cocoa/animation_utils.h" |
68 #import "ui/base/cocoa/fullscreen_window_manager.h" | 68 #import "ui/base/cocoa/fullscreen_window_manager.h" |
69 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" | 69 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" |
70 #include "ui/base/layout.h" | 70 #include "ui/base/layout.h" |
71 #include "ui/compositor/compositor.h" | 71 #include "ui/compositor/compositor.h" |
72 #include "ui/compositor/layer.h" | 72 #include "ui/compositor/layer.h" |
73 #include "ui/events/keycodes/keyboard_codes.h" | 73 #include "ui/events/keycodes/keyboard_codes.h" |
74 #include "ui/gfx/display.h" | 74 #include "ui/gfx/display.h" |
75 #include "ui/gfx/frame_time.h" | |
76 #include "ui/gfx/geometry/dip_util.h" | 75 #include "ui/gfx/geometry/dip_util.h" |
77 #include "ui/gfx/geometry/point.h" | 76 #include "ui/gfx/geometry/point.h" |
78 #include "ui/gfx/geometry/rect_conversions.h" | 77 #include "ui/gfx/geometry/rect_conversions.h" |
79 #include "ui/gfx/geometry/size_conversions.h" | 78 #include "ui/gfx/geometry/size_conversions.h" |
80 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 79 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
81 #include "ui/gfx/screen.h" | 80 #include "ui/gfx/screen.h" |
82 #include "ui/gl/gl_switches.h" | 81 #include "ui/gl/gl_switches.h" |
83 | 82 |
84 using content::BrowserAccessibility; | 83 using content::BrowserAccessibility; |
85 using content::BrowserAccessibilityManager; | 84 using content::BrowserAccessibilityManager; |
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3307 | 3306 |
3308 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3307 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3309 // regions that are not draggable. (See ControlRegionView in | 3308 // regions that are not draggable. (See ControlRegionView in |
3310 // native_app_window_cocoa.mm). This requires the render host view to be | 3309 // native_app_window_cocoa.mm). This requires the render host view to be |
3311 // draggable by default. | 3310 // draggable by default. |
3312 - (BOOL)mouseDownCanMoveWindow { | 3311 - (BOOL)mouseDownCanMoveWindow { |
3313 return YES; | 3312 return YES; |
3314 } | 3313 } |
3315 | 3314 |
3316 @end | 3315 @end |
OLD | NEW |