| 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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 } | 901 } |
| 902 } | 902 } |
| 903 } | 903 } |
| 904 | 904 |
| 905 BackingStore* RenderWidgetHostViewWin::AllocBackingStore( | 905 BackingStore* RenderWidgetHostViewWin::AllocBackingStore( |
| 906 const gfx::Size& size) { | 906 const gfx::Size& size) { |
| 907 return new BackingStoreWin(render_widget_host_, size); | 907 return new BackingStoreWin(render_widget_host_, size); |
| 908 } | 908 } |
| 909 | 909 |
| 910 void RenderWidgetHostViewWin::SetBackground(const SkBitmap& background) { | 910 void RenderWidgetHostViewWin::SetBackground(const SkBitmap& background) { |
| 911 RenderWidgetHostViewBase::SetBackground(background); | 911 content::RenderWidgetHostViewBase::SetBackground(background); |
| 912 render_widget_host_->SetBackground(background); | 912 render_widget_host_->SetBackground(background); |
| 913 } | 913 } |
| 914 | 914 |
| 915 void RenderWidgetHostViewWin::UnhandledWheelEvent( | 915 void RenderWidgetHostViewWin::UnhandledWheelEvent( |
| 916 const WebKit::WebMouseWheelEvent& event) { | 916 const WebKit::WebMouseWheelEvent& event) { |
| 917 } | 917 } |
| 918 | 918 |
| 919 void RenderWidgetHostViewWin::ProcessTouchAck(bool processed) { | 919 void RenderWidgetHostViewWin::ProcessTouchAck(bool processed) { |
| 920 } | 920 } |
| 921 | 921 |
| (...skipping 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2601 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2601 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
| 2602 // If the default focus on the page is on an edit field and we did not | 2602 // If the default focus on the page is on an edit field and we did not |
| 2603 // receive a focus change in the context of a pointer down message, it means | 2603 // receive a focus change in the context of a pointer down message, it means |
| 2604 // that the pointer down message occurred on the edit field and we should | 2604 // that the pointer down message occurred on the edit field and we should |
| 2605 // display the on screen keyboard | 2605 // display the on screen keyboard |
| 2606 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2606 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 2607 DisplayOnScreenKeyboardIfNeeded(); | 2607 DisplayOnScreenKeyboardIfNeeded(); |
| 2608 received_focus_change_after_pointer_down_ = false; | 2608 received_focus_change_after_pointer_down_ = false; |
| 2609 pointer_down_context_ = false; | 2609 pointer_down_context_ = false; |
| 2610 } | 2610 } |
| OLD | NEW |