Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/win/scoped_comptr.h" 14 #include "base/win/scoped_comptr.h"
15 #include "base/win/scoped_gdi_object.h" 15 #include "base/win/scoped_gdi_object.h"
16 #include "base/win/win_util.h" 16 #include "base/win/win_util.h"
17 #include "base/win/windows_version.h" 17 #include "base/win/windows_version.h"
18 #include "base/win/wrapped_window_proc.h" 18 #include "base/win/wrapped_window_proc.h"
19 #include "content/browser/accessibility/browser_accessibility_manager.h" 19 #include "content/browser/accessibility/browser_accessibility_manager.h"
20 #include "content/browser/accessibility/browser_accessibility_state.h" 20 #include "content/browser/accessibility/browser_accessibility_state.h"
21 #include "content/browser/accessibility/browser_accessibility_win.h" 21 #include "content/browser/accessibility/browser_accessibility_win.h"
22 #include "content/browser/browser_thread.h"
23 #include "content/browser/plugin_process_host.h" 22 #include "content/browser/plugin_process_host.h"
24 #include "content/browser/renderer_host/backing_store.h" 23 #include "content/browser/renderer_host/backing_store.h"
25 #include "content/browser/renderer_host/backing_store_win.h" 24 #include "content/browser/renderer_host/backing_store_win.h"
26 #include "content/browser/renderer_host/render_process_host.h" 25 #include "content/browser/renderer_host/render_process_host.h"
27 #include "content/browser/renderer_host/render_widget_host.h" 26 #include "content/browser/renderer_host/render_widget_host.h"
28 #include "content/common/plugin_messages.h" 27 #include "content/common/plugin_messages.h"
29 #include "content/common/view_messages.h" 28 #include "content/common/view_messages.h"
29 #include "content/public/browser/browser_thread.h"
30 #include "content/public/browser/content_browser_client.h" 30 #include "content/public/browser/content_browser_client.h"
31 #include "content/public/browser/native_web_keyboard_event.h" 31 #include "content/public/browser/native_web_keyboard_event.h"
32 #include "content/public/browser/notification_service.h" 32 #include "content/public/browser/notification_service.h"
33 #include "content/public/browser/notification_types.h" 33 #include "content/public/browser/notification_types.h"
34 #include "content/public/common/content_switches.h" 34 #include "content/public/common/content_switches.h"
35 #include "skia/ext/skia_utils_win.h" 35 #include "skia/ext/skia_utils_win.h"
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h" 38 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h"
39 #include "ui/base/ime/composition_text.h" 39 #include "ui/base/ime/composition_text.h"
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 2014
2015 if (message == WM_MOUSEMOVE) { 2015 if (message == WM_MOUSEMOVE) {
2016 CPoint center = GetClientCenter(); 2016 CPoint center = GetClientCenter();
2017 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter(). 2017 // Ignore WM_MOUSEMOVE messages generated by MoveCursorToCenter().
2018 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y) 2018 if (LOWORD(lparam) == center.x && HIWORD(lparam) == center.y)
2019 return; 2019 return;
2020 } 2020 }
2021 2021
2022 ForwardMouseEventToRenderer(message, wparam, lparam); 2022 ForwardMouseEventToRenderer(message, wparam, lparam);
2023 } 2023 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698