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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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" |
81 #include "ui/display/screen.h" | 81 #include "ui/display/screen.h" |
82 #include "ui/events/event_utils.h" | 82 #include "ui/events/event_utils.h" |
83 #include "ui/events/keycodes/keyboard_codes.h" | 83 #include "ui/events/keycodes/keyboard_codes.h" |
84 #include "ui/gfx/color_profile.h" | |
85 #include "ui/gfx/geometry/dip_util.h" | 84 #include "ui/gfx/geometry/dip_util.h" |
86 #include "ui/gfx/geometry/point.h" | 85 #include "ui/gfx/geometry/point.h" |
87 #include "ui/gfx/geometry/rect_conversions.h" | 86 #include "ui/gfx/geometry/rect_conversions.h" |
88 #include "ui/gfx/geometry/size_conversions.h" | 87 #include "ui/gfx/geometry/size_conversions.h" |
89 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 88 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
90 #include "ui/gl/gl_switches.h" | 89 #include "ui/gl/gl_switches.h" |
91 | 90 |
92 using content::BrowserAccessibility; | 91 using content::BrowserAccessibility; |
93 using content::BrowserAccessibilityManager; | 92 using content::BrowserAccessibilityManager; |
94 using content::EditCommand; | 93 using content::EditCommand; |
(...skipping 3206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3301 | 3300 |
3302 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3301 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3303 // regions that are not draggable. (See ControlRegionView in | 3302 // regions that are not draggable. (See ControlRegionView in |
3304 // native_app_window_cocoa.mm). This requires the render host view to be | 3303 // native_app_window_cocoa.mm). This requires the render host view to be |
3305 // draggable by default. | 3304 // draggable by default. |
3306 - (BOOL)mouseDownCanMoveWindow { | 3305 - (BOOL)mouseDownCanMoveWindow { |
3307 return YES; | 3306 return YES; |
3308 } | 3307 } |
3309 | 3308 |
3310 @end | 3309 @end |
OLD | NEW |