OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "chrome/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include "app/gfx/chrome_canvas.h" | 7 #include "app/gfx/chrome_canvas.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 #include "app/l10n_util_win.h" | 9 #include "app/l10n_util_win.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/gfx/gdi_util.h" | 12 #include "base/gfx/gdi_util.h" |
13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
14 #include "base/histogram.h" | 14 #include "base/histogram.h" |
15 #include "base/win_util.h" | 15 #include "base/win_util.h" |
16 #include "chrome/browser/browser_accessibility.h" | 16 #include "chrome/browser/browser_accessibility.h" |
17 #include "chrome/browser/browser_accessibility_manager.h" | 17 #include "chrome/browser/browser_accessibility_manager.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/browser_trial.h" | 19 #include "chrome/browser/browser_trial.h" |
20 #include "chrome/browser/plugin_process_host.h" | 20 #include "chrome/browser/plugin_process_host.h" |
21 #include "chrome/browser/renderer_host/backing_store.h" | 21 #include "chrome/browser/renderer_host/backing_store.h" |
22 #include "chrome/browser/renderer_host/render_process_host.h" | 22 #include "chrome/browser/renderer_host/render_process_host.h" |
23 #include "chrome/browser/renderer_host/render_widget_host.h" | 23 #include "chrome/browser/renderer_host/render_widget_host.h" |
24 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" |
25 #include "chrome/common/chrome_switches.h" | 25 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/native_web_keyboard_event.h" | 26 #include "chrome/common/native_web_keyboard_event.h" |
27 #include "chrome/common/plugin_messages.h" | 27 #include "chrome/common/plugin_messages.h" |
28 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
29 #include "chrome/common/win_util.h" | |
30 #include "grit/webkit_resources.h" | 29 #include "grit/webkit_resources.h" |
31 #include "skia/ext/skia_utils_win.h" | 30 #include "skia/ext/skia_utils_win.h" |
32 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 31 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
33 #include "third_party/WebKit/WebKit/chromium/public/win/WebInputEventFactory.h" | 32 #include "third_party/WebKit/WebKit/chromium/public/win/WebInputEventFactory.h" |
34 #include "views/focus/focus_util_win.h" | 33 #include "views/focus/focus_util_win.h" |
35 // Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! | 34 // Included for views::kReflectedMessage - TODO(beng): move this to win_util.h! |
36 #include "views/widget/widget_win.h" | 35 #include "views/widget/widget_win.h" |
37 #include "webkit/glue/plugins/plugin_constants_win.h" | 36 #include "webkit/glue/plugins/plugin_constants_win.h" |
38 #include "webkit/glue/plugins/webplugin_delegate_impl.h" | 37 #include "webkit/glue/plugins/webplugin_delegate_impl.h" |
39 #include "webkit/glue/webcursor.h" | 38 #include "webkit/glue/webcursor.h" |
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 // WM_LBUTTONDOWN. | 1311 // WM_LBUTTONDOWN. |
1313 SetFocus(); | 1312 SetFocus(); |
1314 } | 1313 } |
1315 } | 1314 } |
1316 | 1315 |
1317 void RenderWidgetHostViewWin::ShutdownHost() { | 1316 void RenderWidgetHostViewWin::ShutdownHost() { |
1318 shutdown_factory_.RevokeAll(); | 1317 shutdown_factory_.RevokeAll(); |
1319 render_widget_host_->Shutdown(); | 1318 render_widget_host_->Shutdown(); |
1320 // Do not touch any members at this point, |this| has been deleted. | 1319 // Do not touch any members at this point, |this| has been deleted. |
1321 } | 1320 } |
OLD | NEW |