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 2233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2244 NOTREACHED(); | 2244 NOTREACHED(); |
2245 } | 2245 } |
2246 | 2246 |
2247 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { | 2247 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { |
2248 if (!accelerated_surface_.get()) | 2248 if (!accelerated_surface_.get()) |
2249 return; | 2249 return; |
2250 | 2250 |
2251 accelerated_surface_->Suspend(); | 2251 accelerated_surface_->Suspend(); |
2252 } | 2252 } |
2253 | 2253 |
| 2254 bool RenderWidgetHostViewWin::HasAcceleratedSurface( |
| 2255 const gfx::Size& desired_size) { |
| 2256 // TODO(jbates) Implement this so this view can use GetBackingStore for both |
| 2257 // software and GPU frames. Defaulting to false just makes GetBackingStore |
| 2258 // only useable for software frames. |
| 2259 return false; |
| 2260 } |
| 2261 |
2254 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { | 2262 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { |
2255 if (!render_widget_host_) | 2263 if (!render_widget_host_) |
2256 return; | 2264 return; |
2257 | 2265 |
2258 render_widget_host_->AccessibilitySetFocus(acc_obj_id); | 2266 render_widget_host_->AccessibilitySetFocus(acc_obj_id); |
2259 } | 2267 } |
2260 | 2268 |
2261 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { | 2269 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { |
2262 if (!render_widget_host_) | 2270 if (!render_widget_host_) |
2263 return; | 2271 return; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2692 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2700 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
2693 // If the default focus on the page is on an edit field and we did not | 2701 // If the default focus on the page is on an edit field and we did not |
2694 // receive a focus change in the context of a pointer down message, it means | 2702 // receive a focus change in the context of a pointer down message, it means |
2695 // that the pointer down message occurred on the edit field and we should | 2703 // that the pointer down message occurred on the edit field and we should |
2696 // display the on screen keyboard | 2704 // display the on screen keyboard |
2697 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2705 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
2698 DisplayOnScreenKeyboardIfNeeded(); | 2706 DisplayOnScreenKeyboardIfNeeded(); |
2699 received_focus_change_after_pointer_down_ = false; | 2707 received_focus_change_after_pointer_down_ = false; |
2700 pointer_down_context_ = false; | 2708 pointer_down_context_ = false; |
2701 } | 2709 } |
OLD | NEW |