| 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 <QuartzCore/QuartzCore.h> | 8 #include <QuartzCore/QuartzCore.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/common/input_messages.h" | 42 #include "content/common/input_messages.h" |
| 43 #include "content/common/view_messages.h" | 43 #include "content/common/view_messages.h" |
| 44 #include "content/common/webplugin_geometry.h" | 44 #include "content/common/webplugin_geometry.h" |
| 45 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | 45 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" |
| 46 #include "content/public/browser/browser_thread.h" | 46 #include "content/public/browser/browser_thread.h" |
| 47 #include "content/public/browser/native_web_keyboard_event.h" | 47 #include "content/public/browser/native_web_keyboard_event.h" |
| 48 #import "content/public/browser/render_widget_host_view_mac_delegate.h" | 48 #import "content/public/browser/render_widget_host_view_mac_delegate.h" |
| 49 #include "content/public/browser/user_metrics.h" | 49 #include "content/public/browser/user_metrics.h" |
| 50 #include "content/public/common/content_switches.h" | 50 #include "content/public/common/content_switches.h" |
| 51 #include "skia/ext/platform_canvas.h" | 51 #include "skia/ext/platform_canvas.h" |
| 52 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 52 #include "third_party/WebKit/public/web/WebInputEvent.h" | 53 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 53 #include "third_party/WebKit/public/web/WebScreenInfo.h" | |
| 54 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" | 54 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" |
| 55 #import "third_party/mozilla/ComplexTextInputPanel.h" | 55 #import "third_party/mozilla/ComplexTextInputPanel.h" |
| 56 #include "ui/base/cocoa/animation_utils.h" | 56 #include "ui/base/cocoa/animation_utils.h" |
| 57 #import "ui/base/cocoa/fullscreen_window_manager.h" | 57 #import "ui/base/cocoa/fullscreen_window_manager.h" |
| 58 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" | 58 #import "ui/base/cocoa/underlay_opengl_hosting_window.h" |
| 59 #include "ui/events/keycodes/keyboard_codes.h" | 59 #include "ui/events/keycodes/keyboard_codes.h" |
| 60 #include "ui/base/layout.h" | 60 #include "ui/base/layout.h" |
| 61 #include "ui/gfx/display.h" | 61 #include "ui/gfx/display.h" |
| 62 #include "ui/gfx/point.h" | 62 #include "ui/gfx/point.h" |
| 63 #include "ui/gfx/rect_conversions.h" | 63 #include "ui/gfx/rect_conversions.h" |
| (...skipping 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3924 return YES; | 3924 return YES; |
| 3925 } | 3925 } |
| 3926 | 3926 |
| 3927 - (BOOL)isOpaque { | 3927 - (BOOL)isOpaque { |
| 3928 if (renderWidgetHostView_->use_core_animation_) | 3928 if (renderWidgetHostView_->use_core_animation_) |
| 3929 return YES; | 3929 return YES; |
| 3930 return [super isOpaque]; | 3930 return [super isOpaque]; |
| 3931 } | 3931 } |
| 3932 | 3932 |
| 3933 @end | 3933 @end |
| OLD | NEW |