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_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <peninputpanel_i.c> | 8 #include <peninputpanel_i.c> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 2122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2133 RenderWidgetHost::AcknowledgeSwapBuffers(params.route_id, gpu_host_id); | 2133 RenderWidgetHost::AcknowledgeSwapBuffers(params.route_id, gpu_host_id); |
2134 } | 2134 } |
2135 } | 2135 } |
2136 | 2136 |
2137 void RenderWidgetHostViewWin::AcceleratedSurfacePostSubBuffer( | 2137 void RenderWidgetHostViewWin::AcceleratedSurfacePostSubBuffer( |
2138 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 2138 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
2139 int gpu_host_id) { | 2139 int gpu_host_id) { |
2140 RenderWidgetHost::AcknowledgePostSubBuffer(params.route_id, gpu_host_id); | 2140 RenderWidgetHost::AcknowledgePostSubBuffer(params.route_id, gpu_host_id); |
2141 } | 2141 } |
2142 | 2142 |
| 2143 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { |
| 2144 if (!accelerated_surface_.get()) |
| 2145 return; |
| 2146 |
| 2147 accelerated_surface_->Suspend(); |
| 2148 } |
| 2149 |
2143 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { | 2150 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { |
2144 if (!render_widget_host_) | 2151 if (!render_widget_host_) |
2145 return; | 2152 return; |
2146 | 2153 |
2147 render_widget_host_->AccessibilitySetFocus(acc_obj_id); | 2154 render_widget_host_->AccessibilitySetFocus(acc_obj_id); |
2148 } | 2155 } |
2149 | 2156 |
2150 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { | 2157 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { |
2151 if (!render_widget_host_) | 2158 if (!render_widget_host_) |
2152 return; | 2159 return; |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2592 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
2586 // If the default focus on the page is on an edit field and we did not | 2593 // If the default focus on the page is on an edit field and we did not |
2587 // receive a focus change in the context of a pointer down message, it means | 2594 // receive a focus change in the context of a pointer down message, it means |
2588 // that the pointer down message occurred on the edit field and we should | 2595 // that the pointer down message occurred on the edit field and we should |
2589 // display the on screen keyboard | 2596 // display the on screen keyboard |
2590 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2597 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
2591 DisplayOnScreenKeyboardIfNeeded(); | 2598 DisplayOnScreenKeyboardIfNeeded(); |
2592 received_focus_change_after_pointer_down_ = false; | 2599 received_focus_change_after_pointer_down_ = false; |
2593 pointer_down_context_ = false; | 2600 pointer_down_context_ = false; |
2594 } | 2601 } |
OLD | NEW |