OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 #include "ui/gfx/rect.h" | 48 #include "ui/gfx/rect.h" |
49 #include "ui/gfx/screen.h" | 49 #include "ui/gfx/screen.h" |
50 #include "webkit/glue/webaccessibility.h" | 50 #include "webkit/glue/webaccessibility.h" |
51 #include "webkit/glue/webcursor.h" | 51 #include "webkit/glue/webcursor.h" |
52 #include "webkit/plugins/npapi/plugin_constants_win.h" | 52 #include "webkit/plugins/npapi/plugin_constants_win.h" |
53 #include "webkit/plugins/npapi/webplugin.h" | 53 #include "webkit/plugins/npapi/webplugin.h" |
54 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" | 54 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
55 | 55 |
56 using base::TimeDelta; | 56 using base::TimeDelta; |
57 using base::TimeTicks; | 57 using base::TimeTicks; |
| 58 using content::BrowserThread; |
58 using ui::ViewProp; | 59 using ui::ViewProp; |
59 using WebKit::WebInputEvent; | 60 using WebKit::WebInputEvent; |
60 using WebKit::WebInputEventFactory; | 61 using WebKit::WebInputEventFactory; |
61 using WebKit::WebMouseEvent; | 62 using WebKit::WebMouseEvent; |
62 using WebKit::WebTextDirection; | 63 using WebKit::WebTextDirection; |
63 using webkit::npapi::WebPluginGeometry; | 64 using webkit::npapi::WebPluginGeometry; |
64 | 65 |
65 const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; | 66 const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND"; |
66 | 67 |
67 namespace { | 68 namespace { |
(...skipping 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2019 | 2020 |
2020 if (message == WM_MOUSEMOVE) { | 2021 if (message == WM_MOUSEMOVE) { |
2021 CPoint center = GetClientCenter(); | 2022 CPoint center = GetClientCenter(); |
2022 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter(). | 2023 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter(). |
2023 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y) | 2024 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y) |
2024 return; | 2025 return; |
2025 } | 2026 } |
2026 | 2027 |
2027 ForwardMouseEventToRenderer(message, wparam, lparam); | 2028 ForwardMouseEventToRenderer(message, wparam, lparam); |
2028 } | 2029 } |
OLD | NEW |