OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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.h" | 5 #include "chrome/browser/renderer_host/render_widget_host.h" |
6 | 6 |
7 #include "base/histogram.h" | 7 #include "base/histogram.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/keyboard_codes.h" | 9 #include "base/keyboard_codes.h" |
10 #include "chrome/browser/renderer_host/backing_store.h" | 10 #include "chrome/browser/renderer_host/backing_store.h" |
11 #include "chrome/browser/renderer_host/backing_store_manager.h" | 11 #include "chrome/browser/renderer_host/backing_store_manager.h" |
12 #include "chrome/browser/renderer_host/render_process_host.h" | 12 #include "chrome/browser/renderer_host/render_process_host.h" |
13 #include "chrome/browser/renderer_host/render_widget_helper.h" | 13 #include "chrome/browser/renderer_host/render_widget_helper.h" |
14 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" | 14 #include "chrome/browser/renderer_host/render_widget_host_painting_observer.h" |
15 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 15 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
16 #include "chrome/common/notification_service.h" | 16 #include "chrome/common/notification_service.h" |
17 #include "chrome/common/render_messages.h" | 17 #include "chrome/common/render_messages.h" |
18 #include "webkit/glue/webcursor.h" | 18 #include "webkit/glue/webcursor.h" |
19 | 19 |
20 #if defined(TOOLKIT_VIEWS) | 20 #if defined(TOOLKIT_VIEWS) |
21 #include "views/view.h" | 21 #include "views/view.h" |
22 #endif | 22 #endif |
23 | 23 |
24 #if defined(OS_WIN) | |
25 #include "base/gfx/gdi_util.h" | |
26 #include "chrome/app/chrome_dll_resource.h" | |
27 #endif // defined(OS_WIN) | |
28 | |
29 #if defined (OS_MACOSX) | 24 #if defined (OS_MACOSX) |
30 #include "webkit/api/public/WebScreenInfo.h" | 25 #include "webkit/api/public/WebScreenInfo.h" |
31 #include "webkit/api/public/mac/WebScreenInfoFactory.h" | 26 #include "webkit/api/public/mac/WebScreenInfoFactory.h" |
32 #endif | 27 #endif |
33 | 28 |
34 using base::Time; | 29 using base::Time; |
35 using base::TimeDelta; | 30 using base::TimeDelta; |
36 using base::TimeTicks; | 31 using base::TimeTicks; |
37 | 32 |
38 using WebKit::WebInputEvent; | 33 using WebKit::WebInputEvent; |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); | 894 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); |
900 } | 895 } |
901 | 896 |
902 void RenderWidgetHost::ReplaceWord(const std::wstring& word) { | 897 void RenderWidgetHost::ReplaceWord(const std::wstring& word) { |
903 Send(new ViewMsg_Replace(routing_id_, word)); | 898 Send(new ViewMsg_Replace(routing_id_, word)); |
904 } | 899 } |
905 | 900 |
906 void RenderWidgetHost::AdvanceToNextMisspelling() { | 901 void RenderWidgetHost::AdvanceToNextMisspelling() { |
907 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_)); | 902 Send(new ViewMsg_AdvanceToNextMisspelling(routing_id_)); |
908 } | 903 } |
OLD | NEW |