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 <dwmapi.h> | 7 #include <dwmapi.h> |
8 #include <InputScope.h> | 8 #include <InputScope.h> |
9 | 9 |
10 #include <wtsapi32.h> | |
piman
2013/05/20 21:06:36
nit: I assume this is an intentional move, c heade
| |
10 #include <algorithm> | 11 #include <algorithm> |
11 #include <map> | 12 #include <map> |
12 #include <stack> | 13 #include <stack> |
13 #include <wtsapi32.h> | |
14 #pragma comment(lib, "wtsapi32.lib") | 14 #pragma comment(lib, "wtsapi32.lib") |
15 | 15 |
16 #include "base/bind.h" | 16 #include "base/bind.h" |
17 #include "base/bind_helpers.h" | 17 #include "base/bind_helpers.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/debug/trace_event.h" | 19 #include "base/debug/trace_event.h" |
20 #include "base/i18n/rtl.h" | 20 #include "base/i18n/rtl.h" |
21 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
22 #include "base/process_util.h" | 22 #include "base/process_util.h" |
23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "base/win/metro.h" | 24 #include "base/win/metro.h" |
25 #include "base/win/scoped_comptr.h" | 25 #include "base/win/scoped_comptr.h" |
26 #include "base/win/scoped_gdi_object.h" | 26 #include "base/win/scoped_gdi_object.h" |
27 #include "base/win/win_util.h" | 27 #include "base/win/win_util.h" |
28 #include "base/win/windows_version.h" | 28 #include "base/win/windows_version.h" |
29 #include "base/win/wrapped_window_proc.h" | 29 #include "base/win/wrapped_window_proc.h" |
30 #include "content/browser/accessibility/browser_accessibility_manager_win.h" | 30 #include "content/browser/accessibility/browser_accessibility_manager_win.h" |
31 #include "content/browser/accessibility/browser_accessibility_state_impl.h" | 31 #include "content/browser/accessibility/browser_accessibility_state_impl.h" |
32 #include "content/browser/accessibility/browser_accessibility_win.h" | 32 #include "content/browser/accessibility/browser_accessibility_win.h" |
33 #include "content/browser/gpu/gpu_data_manager_impl.h" | 33 #include "content/browser/gpu/gpu_data_manager_impl.h" |
34 #include "content/browser/gpu/gpu_process_host.h" | 34 #include "content/browser/gpu/gpu_process_host.h" |
35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" | 35 #include "content/browser/gpu/gpu_process_host_ui_shim.h" |
36 #include "content/browser/renderer_host/backing_store.h" | 36 #include "content/browser/renderer_host/backing_store.h" |
37 #include "content/browser/renderer_host/backing_store_win.h" | 37 #include "content/browser/renderer_host/backing_store_win.h" |
38 #include "content/browser/renderer_host/render_process_host_impl.h" | 38 #include "content/browser/renderer_host/render_process_host_impl.h" |
39 #include "content/browser/renderer_host/render_widget_host_impl.h" | 39 #include "content/browser/renderer_host/render_widget_host_impl.h" |
40 #include "content/browser/renderer_host/ui_events_helper.h" | 40 #include "content/browser/renderer_host/ui_events_helper.h" |
41 #include "content/common/accessibility_messages.h" | 41 #include "content/common/accessibility_messages.h" |
42 #include "content/common/gpu/gpu_messages.h" | 42 #include "content/common/gpu/gpu_messages.h" |
43 #include "content/common/plugin_messages.h" | |
44 #include "content/common/view_messages.h" | 43 #include "content/common/view_messages.h" |
45 #include "content/public/browser/browser_thread.h" | 44 #include "content/public/browser/browser_thread.h" |
46 #include "content/public/browser/child_process_data.h" | 45 #include "content/public/browser/child_process_data.h" |
47 #include "content/public/browser/content_browser_client.h" | 46 #include "content/public/browser/content_browser_client.h" |
48 #include "content/public/browser/native_web_keyboard_event.h" | 47 #include "content/public/browser/native_web_keyboard_event.h" |
49 #include "content/public/browser/notification_service.h" | 48 #include "content/public/browser/notification_service.h" |
50 #include "content/public/browser/notification_types.h" | 49 #include "content/public/browser/notification_types.h" |
51 #include "content/public/common/content_switches.h" | 50 #include "content/public/common/content_switches.h" |
52 #include "content/public/common/page_zoom.h" | 51 #include "content/public/common/page_zoom.h" |
53 #include "content/public/common/process_type.h" | 52 #include "content/public/common/process_type.h" |
54 #include "skia/ext/skia_utils_win.h" | 53 #include "skia/ext/skia_utils_win.h" |
55 #include "third_party/skia/include/core/SkRegion.h" | |
56 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" | 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" |
57 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 55 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
58 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h" | 56 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebInputEventFact ory.h" |
59 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebScreenInfoFact ory.h" | 57 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebScreenInfoFact ory.h" |
58 #include "third_party/skia/include/core/SkRegion.h" | |
60 #include "ui/base/events/event.h" | 59 #include "ui/base/events/event.h" |
61 #include "ui/base/events/event_utils.h" | 60 #include "ui/base/events/event_utils.h" |
62 #include "ui/base/ime/composition_text.h" | 61 #include "ui/base/ime/composition_text.h" |
63 #include "ui/base/ime/win/tsf_input_scope.h" | 62 #include "ui/base/ime/win/tsf_input_scope.h" |
64 #include "ui/base/l10n/l10n_util_win.h" | 63 #include "ui/base/l10n/l10n_util_win.h" |
65 #include "ui/base/text/text_elider.h" | 64 #include "ui/base/text/text_elider.h" |
66 #include "ui/base/touch/touch_device.h" | 65 #include "ui/base/touch/touch_device.h" |
67 #include "ui/base/ui_base_switches.h" | 66 #include "ui/base/ui_base_switches.h" |
68 #include "ui/base/view_prop.h" | 67 #include "ui/base/view_prop.h" |
69 #include "ui/base/win/dpi.h" | 68 #include "ui/base/win/dpi.h" |
(...skipping 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3136 return new RenderWidgetHostViewWin(widget); | 3135 return new RenderWidgetHostViewWin(widget); |
3137 } | 3136 } |
3138 | 3137 |
3139 // static | 3138 // static |
3140 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3139 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3141 WebKit::WebScreenInfo* results) { | 3140 WebKit::WebScreenInfo* results) { |
3142 GetScreenInfoForWindow(results, 0); | 3141 GetScreenInfoForWindow(results, 0); |
3143 } | 3142 } |
3144 | 3143 |
3145 } // namespace content | 3144 } // namespace content |
OLD | NEW |