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 #include <QuartzCore/QuartzCore.h> | 7 #include <QuartzCore/QuartzCore.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1311 glMatrixMode(GL_MODELVIEW); | 1311 glMatrixMode(GL_MODELVIEW); |
1312 glLoadIdentity(); | 1312 glLoadIdentity(); |
1313 | 1313 |
1314 plugin_container_manager_.Draw(context, plugin_handle); | 1314 plugin_container_manager_.Draw(context, plugin_handle); |
1315 } | 1315 } |
1316 | 1316 |
1317 void RenderWidgetHostViewMac::ForceTextureReload() { | 1317 void RenderWidgetHostViewMac::ForceTextureReload() { |
1318 plugin_container_manager_.ForceTextureReload(); | 1318 plugin_container_manager_.ForceTextureReload(); |
1319 } | 1319 } |
1320 | 1320 |
1321 void RenderWidgetHostViewMac::ProcessTouchAck(bool processed) { | |
1322 } | |
1323 | |
1324 void RenderWidgetHostViewMac::SetHasHorizontalScrollbar( | 1321 void RenderWidgetHostViewMac::SetHasHorizontalScrollbar( |
1325 bool has_horizontal_scrollbar) { | 1322 bool has_horizontal_scrollbar) { |
1326 [cocoa_view_ setHasHorizontalScrollbar:has_horizontal_scrollbar]; | 1323 [cocoa_view_ setHasHorizontalScrollbar:has_horizontal_scrollbar]; |
1327 } | 1324 } |
1328 | 1325 |
1329 void RenderWidgetHostViewMac::SetScrollOffsetPinning( | 1326 void RenderWidgetHostViewMac::SetScrollOffsetPinning( |
1330 bool is_pinned_to_left, bool is_pinned_to_right) { | 1327 bool is_pinned_to_left, bool is_pinned_to_right) { |
1331 [cocoa_view_ scrollOffsetPinnedToLeft:is_pinned_to_left | 1328 [cocoa_view_ scrollOffsetPinnedToLeft:is_pinned_to_left |
1332 toRight:is_pinned_to_right]; | 1329 toRight:is_pinned_to_right]; |
1333 } | 1330 } |
(...skipping 1966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3300 if (!string) return NO; | 3297 if (!string) return NO; |
3301 | 3298 |
3302 // If the user is currently using an IME, confirm the IME input, | 3299 // If the user is currently using an IME, confirm the IME input, |
3303 // and then insert the text from the service, the same as TextEdit and Safari. | 3300 // and then insert the text from the service, the same as TextEdit and Safari. |
3304 [self confirmComposition]; | 3301 [self confirmComposition]; |
3305 [self insertText:string]; | 3302 [self insertText:string]; |
3306 return YES; | 3303 return YES; |
3307 } | 3304 } |
3308 | 3305 |
3309 @end | 3306 @end |
OLD | NEW |