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 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 NOTREACHED(); | 2238 NOTREACHED(); |
2239 } | 2239 } |
2240 | 2240 |
2241 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { | 2241 void RenderWidgetHostViewWin::AcceleratedSurfaceSuspend() { |
2242 if (!accelerated_surface_.get()) | 2242 if (!accelerated_surface_.get()) |
2243 return; | 2243 return; |
2244 | 2244 |
2245 accelerated_surface_->Suspend(); | 2245 accelerated_surface_->Suspend(); |
2246 } | 2246 } |
2247 | 2247 |
| 2248 bool RenderWidgetHostViewWin::HasAcceleratedSurface( |
| 2249 const gfx::Size& desired_size) { |
| 2250 return false; |
| 2251 } |
| 2252 |
2248 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { | 2253 void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) { |
2249 if (!render_widget_host_) | 2254 if (!render_widget_host_) |
2250 return; | 2255 return; |
2251 | 2256 |
2252 render_widget_host_->AccessibilitySetFocus(acc_obj_id); | 2257 render_widget_host_->AccessibilitySetFocus(acc_obj_id); |
2253 } | 2258 } |
2254 | 2259 |
2255 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { | 2260 void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) { |
2256 if (!render_widget_host_) | 2261 if (!render_widget_host_) |
2257 return; | 2262 return; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2686 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2691 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
2687 // If the default focus on the page is on an edit field and we did not | 2692 // If the default focus on the page is on an edit field and we did not |
2688 // receive a focus change in the context of a pointer down message, it means | 2693 // receive a focus change in the context of a pointer down message, it means |
2689 // that the pointer down message occurred on the edit field and we should | 2694 // that the pointer down message occurred on the edit field and we should |
2690 // display the on screen keyboard | 2695 // display the on screen keyboard |
2691 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2696 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
2692 DisplayOnScreenKeyboardIfNeeded(); | 2697 DisplayOnScreenKeyboardIfNeeded(); |
2693 received_focus_change_after_pointer_down_ = false; | 2698 received_focus_change_after_pointer_down_ = false; |
2694 pointer_down_context_ = false; | 2699 pointer_down_context_ = false; |
2695 } | 2700 } |
OLD | NEW |