OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" |
6 | 6 |
7 #include <QuartzCore/QuartzCore.h> | 7 #include <QuartzCore/QuartzCore.h> |
8 | 8 |
9 #include <cmath> | 9 #include <cmath> |
10 | 10 |
(...skipping 1082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 bool has_horizontal_scrollbar) { | 1093 bool has_horizontal_scrollbar) { |
1094 [cocoa_view_ setHasHorizontalScrollbar:has_horizontal_scrollbar]; | 1094 [cocoa_view_ setHasHorizontalScrollbar:has_horizontal_scrollbar]; |
1095 } | 1095 } |
1096 | 1096 |
1097 void RenderWidgetHostViewMac::SetScrollOffsetPinning( | 1097 void RenderWidgetHostViewMac::SetScrollOffsetPinning( |
1098 bool is_pinned_to_left, bool is_pinned_to_right) { | 1098 bool is_pinned_to_left, bool is_pinned_to_right) { |
1099 [cocoa_view_ setPinnedLeft:is_pinned_to_left]; | 1099 [cocoa_view_ setPinnedLeft:is_pinned_to_left]; |
1100 [cocoa_view_ setPinnedRight:is_pinned_to_right]; | 1100 [cocoa_view_ setPinnedRight:is_pinned_to_right]; |
1101 } | 1101 } |
1102 | 1102 |
| 1103 bool RenderWidgetHostViewMac::LockMouse() { |
| 1104 NOTIMPLEMENTED(); |
| 1105 return false; |
| 1106 } |
| 1107 |
| 1108 void RenderWidgetHostViewMac::UnlockMouse() { |
| 1109 NOTIMPLEMENTED(); |
| 1110 } |
| 1111 |
1103 void RenderWidgetHostViewMac::ShutdownHost() { | 1112 void RenderWidgetHostViewMac::ShutdownHost() { |
1104 shutdown_factory_.RevokeAll(); | 1113 shutdown_factory_.RevokeAll(); |
1105 render_widget_host_->Shutdown(); | 1114 render_widget_host_->Shutdown(); |
1106 // Do not touch any members at this point, |this| has been deleted. | 1115 // Do not touch any members at this point, |this| has been deleted. |
1107 } | 1116 } |
1108 | 1117 |
1109 gfx::Rect RenderWidgetHostViewMac::GetViewCocoaBounds() const { | 1118 gfx::Rect RenderWidgetHostViewMac::GetViewCocoaBounds() const { |
1110 return gfx::Rect(NSRectToCGRect([cocoa_view_ bounds])); | 1119 return gfx::Rect(NSRectToCGRect([cocoa_view_ bounds])); |
1111 } | 1120 } |
1112 | 1121 |
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 if (!string) return NO; | 2887 if (!string) return NO; |
2879 | 2888 |
2880 // If the user is currently using an IME, confirm the IME input, | 2889 // If the user is currently using an IME, confirm the IME input, |
2881 // and then insert the text from the service, the same as TextEdit and Safari. | 2890 // and then insert the text from the service, the same as TextEdit and Safari. |
2882 [self confirmComposition]; | 2891 [self confirmComposition]; |
2883 [self insertText:string]; | 2892 [self insertText:string]; |
2884 return YES; | 2893 return YES; |
2885 } | 2894 } |
2886 | 2895 |
2887 @end | 2896 @end |
OLD | NEW |