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 "content/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id)); | 2095 new AcceleratedSurfaceMsg_BuffersSwappedACK(params.route_id)); |
2096 | 2096 |
2097 accelerated_surface_->AsyncPresentAndAcknowledge( | 2097 accelerated_surface_->AsyncPresentAndAcknowledge( |
2098 params.size, | 2098 params.size, |
2099 params.surface_id, | 2099 params.surface_id, |
2100 base::Bind(PostTaskOnIOThread, | 2100 base::Bind(PostTaskOnIOThread, |
2101 FROM_HERE, | 2101 FROM_HERE, |
2102 acknowledge_task)); | 2102 acknowledge_task)); |
2103 } | 2103 } |
2104 | 2104 |
| 2105 void RenderWidgetHostViewWin::AcceleratedSurfacePostSubBuffer( |
| 2106 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 2107 int gpu_host_id) { |
| 2108 NOTREACHED(); |
| 2109 } |
| 2110 |
2105 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { | 2111 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { |
2106 if (!render_widget_host_) | 2112 if (!render_widget_host_) |
2107 return; | 2113 return; |
2108 | 2114 |
2109 render_widget_host_->AccessibilitySetFocus(acc_obj_id); | 2115 render_widget_host_->AccessibilitySetFocus(acc_obj_id); |
2110 } | 2116 } |
2111 | 2117 |
2112 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { | 2118 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { |
2113 if (!render_widget_host_) | 2119 if (!render_widget_host_) |
2114 return; | 2120 return; |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2478 | 2484 |
2479 size_t offset = selection_range_.GetMin() - selection_text_offset_; | 2485 size_t offset = selection_range_.GetMin() - selection_text_offset_; |
2480 memcpy(reinterpret_cast<char*>(reconv) + sizeof(RECONVERTSTRING), | 2486 memcpy(reinterpret_cast<char*>(reconv) + sizeof(RECONVERTSTRING), |
2481 selection_text_.c_str() + offset, len * sizeof(WCHAR)); | 2487 selection_text_.c_str() + offset, len * sizeof(WCHAR)); |
2482 | 2488 |
2483 // According to Microsft API document, IMR_RECONVERTSTRING and | 2489 // According to Microsft API document, IMR_RECONVERTSTRING and |
2484 // IMR_DOCUMENTFEED should return reconv, but some applications return | 2490 // IMR_DOCUMENTFEED should return reconv, but some applications return |
2485 // need_size. | 2491 // need_size. |
2486 return reinterpret_cast<LRESULT>(reconv); | 2492 return reinterpret_cast<LRESULT>(reconv); |
2487 } | 2493 } |
OLD | NEW |