OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <QuartzCore/QuartzCore.h> | 5 #include <QuartzCore/QuartzCore.h> |
6 | 6 |
7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 7 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
8 | 8 |
9 #include "app/surface/io_surface_support_mac.h" | 9 #include "app/surface/io_surface_support_mac.h" |
10 #import "base/chrome_application_mac.h" | 10 #import "base/chrome_application_mac.h" |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 - (void)cancelChildPopups { | 1098 - (void)cancelChildPopups { |
1099 // If this view can be the key view, it is not a popup. Therefore, if it has | 1099 // If this view can be the key view, it is not a popup. Therefore, if it has |
1100 // any children, they are popups that need to be canceled. | 1100 // any children, they are popups that need to be canceled. |
1101 if (canBeKeyView_) { | 1101 if (canBeKeyView_) { |
1102 for (RenderWidgetHostViewCocoa* subview in [self subviews]) { | 1102 for (RenderWidgetHostViewCocoa* subview in [self subviews]) { |
1103 subview->renderWidgetHostView_->KillSelf(); | 1103 subview->renderWidgetHostView_->KillSelf(); |
1104 } | 1104 } |
1105 } | 1105 } |
1106 } | 1106 } |
1107 | 1107 |
| 1108 - (void)setFrameSize:(NSSize)newSize { |
| 1109 [super setFrameSize:newSize]; |
| 1110 if (renderWidgetHostView_->render_widget_host_) |
| 1111 renderWidgetHostView_->render_widget_host_->WasResized(); |
| 1112 } |
| 1113 |
1108 - (void)setFrame:(NSRect)frameRect { | 1114 - (void)setFrame:(NSRect)frameRect { |
1109 [super setFrame:frameRect]; | 1115 [super setFrame:frameRect]; |
1110 if (renderWidgetHostView_->render_widget_host_) | 1116 if (renderWidgetHostView_->render_widget_host_) |
1111 renderWidgetHostView_->render_widget_host_->WasResized(); | 1117 renderWidgetHostView_->render_widget_host_->WasResized(); |
1112 } | 1118 } |
1113 | 1119 |
1114 - (void)setFrameWithDeferredUpdate:(NSRect)frameRect { | 1120 - (void)setFrameWithDeferredUpdate:(NSRect)frameRect { |
1115 [super setFrame:frameRect]; | 1121 [super setFrame:frameRect]; |
1116 [self performSelector:@selector(renderWidgetHostWasResized) | 1122 [self performSelector:@selector(renderWidgetHostWasResized) |
1117 withObject:nil | 1123 withObject:nil |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 if (!hasMarkedText_) | 1990 if (!hasMarkedText_) |
1985 return; | 1991 return; |
1986 | 1992 |
1987 if (renderWidgetHostView_->render_widget_host_) | 1993 if (renderWidgetHostView_->render_widget_host_) |
1988 renderWidgetHostView_->render_widget_host_->ImeConfirmComposition(); | 1994 renderWidgetHostView_->render_widget_host_->ImeConfirmComposition(); |
1989 | 1995 |
1990 [self cancelComposition]; | 1996 [self cancelComposition]; |
1991 } | 1997 } |
1992 | 1998 |
1993 @end | 1999 @end |
OLD | NEW |