| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "ui/gfx/screen.h" | 58 #include "ui/gfx/screen.h" |
| 59 #include "webkit/glue/webaccessibility.h" | 59 #include "webkit/glue/webaccessibility.h" |
| 60 #include "webkit/glue/webcursor.h" | 60 #include "webkit/glue/webcursor.h" |
| 61 #include "webkit/plugins/npapi/plugin_constants_win.h" | 61 #include "webkit/plugins/npapi/plugin_constants_win.h" |
| 62 #include "webkit/plugins/npapi/webplugin.h" | 62 #include "webkit/plugins/npapi/webplugin.h" |
| 63 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 63 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
| 64 | 64 |
| 65 using base::TimeDelta; | 65 using base::TimeDelta; |
| 66 using base::TimeTicks; | 66 using base::TimeTicks; |
| 67 using content::BrowserThread; | 67 using content::BrowserThread; |
| 68 using content::RenderWidgetHostView; |
| 68 using ui::ViewProp; | 69 using ui::ViewProp; |
| 69 using WebKit::WebInputEvent; | 70 using WebKit::WebInputEvent; |
| 70 using WebKit::WebInputEventFactory; | 71 using WebKit::WebInputEventFactory; |
| 71 using WebKit::WebMouseEvent; | 72 using WebKit::WebMouseEvent; |
| 72 using WebKit::WebTextDirection; | 73 using WebKit::WebTextDirection; |
| 73 using webkit::npapi::WebPluginGeometry; | 74 using webkit::npapi::WebPluginGeometry; |
| 74 | 75 |
| 75 const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; | 76 const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; |
| 76 | 77 |
| 77 namespace { | 78 namespace { |
| (...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2592 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2593 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
| 2593 // If the default focus on the page is on an edit field and we did not | 2594 // If the default focus on the page is on an edit field and we did not |
| 2594 // receive a focus change in the context of a pointer down message, it means | 2595 // receive a focus change in the context of a pointer down message, it means |
| 2595 // that the pointer down message occurred on the edit field and we should | 2596 // that the pointer down message occurred on the edit field and we should |
| 2596 // display the on screen keyboard | 2597 // display the on screen keyboard |
| 2597 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2598 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
| 2598 DisplayOnScreenKeyboardIfNeeded(); | 2599 DisplayOnScreenKeyboardIfNeeded(); |
| 2599 received_focus_change_after_pointer_down_ = false; | 2600 received_focus_change_after_pointer_down_ = false; |
| 2600 pointer_down_context_ = false; | 2601 pointer_down_context_ = false; |
| 2601 } | 2602 } |
| OLD | NEW |