| 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 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 917 if (size.IsEmpty()) | 917 if (size.IsEmpty()) |
| 918 return false; | 918 return false; |
| 919 | 919 |
| 920 if (!output->initialize(size.width(), size.height(), true)) | 920 if (!output->initialize(size.width(), size.height(), true)) |
| 921 return false; | 921 return false; |
| 922 | 922 |
| 923 return accelerated_surface_->CopyTo( | 923 return accelerated_surface_->CopyTo( |
| 924 size, output->getTopDevice()->accessBitmap(true).getPixels()); | 924 size, output->getTopDevice()->accessBitmap(true).getPixels()); |
| 925 } | 925 } |
| 926 | 926 |
| 927 void RenderWidgetHostViewWin::UnhandledWheelEvent( | |
| 928 const WebKit::WebMouseWheelEvent& event) { | |
| 929 } | |
| 930 | |
| 931 void RenderWidgetHostViewWin::ProcessTouchAck( | 927 void RenderWidgetHostViewWin::ProcessTouchAck( |
| 932 WebKit::WebInputEvent::Type type, bool processed) { | 928 WebKit::WebInputEvent::Type type, bool processed) { |
| 933 if (type == WebKit::WebInputEvent::TouchStart) | 929 if (type == WebKit::WebInputEvent::TouchStart) |
| 934 UpdateDesiredTouchMode(processed); | 930 UpdateDesiredTouchMode(processed); |
| 935 } | 931 } |
| 936 | 932 |
| 937 void RenderWidgetHostViewWin::SetToGestureMode() { | 933 void RenderWidgetHostViewWin::SetToGestureMode() { |
| 938 if (base::win::GetVersion() < base::win::VERSION_WIN7) | 934 if (base::win::GetVersion() < base::win::VERSION_WIN7) |
| 939 return; | 935 return; |
| 940 UnregisterTouchWindow(m_hWnd); | 936 UnregisterTouchWindow(m_hWnd); |
| (...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2678 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2674 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
| 2679 // If the default focus on the page is on an edit field and we did not | 2675 // If the default focus on the page is on an edit field and we did not |
| 2680 // receive a focus change in the context of a pointer down message, it means | 2676 // receive a focus change in the context of a pointer down message, it means |
| 2681 // that the pointer down message occurred on the edit field and we should | 2677 // that the pointer down message occurred on the edit field and we should |
| 2682 // display the on screen keyboard | 2678 // display the on screen keyboard |
| 2683 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2679 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 2684 DisplayOnScreenKeyboardIfNeeded(); | 2680 DisplayOnScreenKeyboardIfNeeded(); |
| 2685 received_focus_change_after_pointer_down_ = false; | 2681 received_focus_change_after_pointer_down_ = false; |
| 2686 pointer_down_context_ = false; | 2682 pointer_down_context_ = false; |
| 2687 } | 2683 } |
| OLD | NEW |