| 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 25 matching lines...) Expand all Loading... |
| 36 #include "content/browser/renderer_host/render_view_host_impl.h" | 36 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 37 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" | 37 #import "content/browser/renderer_host/render_widget_host_view_mac_dictionary_he
lper.h" |
| 38 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" | 38 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h
elper.h" |
| 39 #import "content/browser/renderer_host/text_input_client_mac.h" | 39 #import "content/browser/renderer_host/text_input_client_mac.h" |
| 40 #include "content/common/accessibility_messages.h" | 40 #include "content/common/accessibility_messages.h" |
| 41 #include "content/common/edit_command.h" | 41 #include "content/common/edit_command.h" |
| 42 #include "content/common/gpu/gpu_messages.h" | 42 #include "content/common/gpu/gpu_messages.h" |
| 43 #include "content/common/input_messages.h" | 43 #include "content/common/input_messages.h" |
| 44 #include "content/common/view_messages.h" | 44 #include "content/common/view_messages.h" |
| 45 #include "content/common/webplugin_geometry.h" | 45 #include "content/common/webplugin_geometry.h" |
| 46 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" | |
| 47 #include "content/public/browser/browser_thread.h" | 46 #include "content/public/browser/browser_thread.h" |
| 48 #include "content/public/browser/native_web_keyboard_event.h" | 47 #include "content/public/browser/native_web_keyboard_event.h" |
| 49 #include "content/public/browser/notification_service.h" | 48 #include "content/public/browser/notification_service.h" |
| 50 #include "content/public/browser/notification_types.h" | 49 #include "content/public/browser/notification_types.h" |
| 50 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
| 51 #import "content/public/browser/render_widget_host_view_mac_delegate.h" | 51 #import "content/public/browser/render_widget_host_view_mac_delegate.h" |
| 52 #include "content/public/browser/user_metrics.h" | 52 #include "content/public/browser/user_metrics.h" |
| 53 #include "content/public/browser/web_contents.h" | 53 #include "content/public/browser/web_contents.h" |
| 54 #include "skia/ext/platform_canvas.h" | 54 #include "skia/ext/platform_canvas.h" |
| 55 #include "third_party/WebKit/public/platform/WebScreenInfo.h" | 55 #include "third_party/WebKit/public/platform/WebScreenInfo.h" |
| 56 #include "third_party/WebKit/public/web/WebInputEvent.h" | 56 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 57 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" | 57 #include "third_party/WebKit/public/web/mac/WebInputEventFactory.h" |
| 58 #import "third_party/mozilla/ComplexTextInputPanel.h" | 58 #import "third_party/mozilla/ComplexTextInputPanel.h" |
| 59 #include "ui/base/cocoa/animation_utils.h" | 59 #include "ui/base/cocoa/animation_utils.h" |
| 60 #import "ui/base/cocoa/fullscreen_window_manager.h" | 60 #import "ui/base/cocoa/fullscreen_window_manager.h" |
| (...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4279 } | 4279 } |
| 4280 | 4280 |
| 4281 - (void)disableRendering { | 4281 - (void)disableRendering { |
| 4282 // Disable the fade-out animation as the layer is removed. | 4282 // Disable the fade-out animation as the layer is removed. |
| 4283 ScopedCAActionDisabler disabler; | 4283 ScopedCAActionDisabler disabler; |
| 4284 [self removeFromSuperlayer]; | 4284 [self removeFromSuperlayer]; |
| 4285 renderWidgetHostView_ = nil; | 4285 renderWidgetHostView_ = nil; |
| 4286 } | 4286 } |
| 4287 | 4287 |
| 4288 @end // implementation SoftwareLayer | 4288 @end // implementation SoftwareLayer |
| OLD | NEW |