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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" | 63 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" |
64 #import "third_party/mozilla/ComplexTextInputPanel.h" | 64 #import "third_party/mozilla/ComplexTextInputPanel.h" |
65 #include "ui/base/cocoa/animation_utils.h" | 65 #include "ui/base/cocoa/animation_utils.h" |
66 #import "ui/base/cocoa/fullscreen_window_manager.h" | 66 #import "ui/base/cocoa/fullscreen_window_manager.h" |
67 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" | 67 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" |
68 #include "ui/events/keycodes/keyboard_codes.h" | 68 #include "ui/events/keycodes/keyboard_codes.h" |
69 #include "ui/base/layout.h" | 69 #include "ui/base/layout.h" |
70 #include "ui/compositor/compositor.h" | 70 #include "ui/compositor/compositor.h" |
71 #include "ui/compositor/layer.h" | 71 #include "ui/compositor/layer.h" |
72 #include "ui/gfx/display.h" | 72 #include "ui/gfx/display.h" |
73 #include "ui/gfx/point.h" | 73 #include "ui/gfx/geometry/point.h" |
74 #include "ui/gfx/rect_conversions.h" | 74 #include "ui/gfx/rect_conversions.h" |
75 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 75 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
76 #include "ui/gfx/screen.h" | 76 #include "ui/gfx/screen.h" |
77 #include "ui/gfx/size_conversions.h" | 77 #include "ui/gfx/size_conversions.h" |
78 #include "ui/gl/gl_switches.h" | 78 #include "ui/gl/gl_switches.h" |
79 | 79 |
80 using content::BrowserAccessibility; | 80 using content::BrowserAccessibility; |
81 using content::BrowserAccessibilityManager; | 81 using content::BrowserAccessibilityManager; |
82 using content::EditCommand; | 82 using content::EditCommand; |
83 using content::FrameTreeNode; | 83 using content::FrameTreeNode; |
(...skipping 3866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3950 | 3950 |
3951 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding | 3951 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding |
3952 // regions that are not draggable. (See ControlRegionView in | 3952 // regions that are not draggable. (See ControlRegionView in |
3953 // native_app_window_cocoa.mm). This requires the render host view to be | 3953 // native_app_window_cocoa.mm). This requires the render host view to be |
3954 // draggable by default. | 3954 // draggable by default. |
3955 - (BOOL)mouseDownCanMoveWindow { | 3955 - (BOOL)mouseDownCanMoveWindow { |
3956 return YES; | 3956 return YES; |
3957 } | 3957 } |
3958 | 3958 |
3959 @end | 3959 @end |
OLD | NEW |