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/render_process_host.h" | 11 #include "chrome/browser/renderer_host/render_process_host.h" |
12 #include "chrome/browser/renderer_host/render_widget_helper.h" | 12 #include "chrome/browser/renderer_host/render_widget_helper.h" |
13 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 13 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
14 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
15 #include "chrome/common/render_messages.h" | 15 #include "chrome/common/render_messages.h" |
16 #include "views/view.h" | 16 #include "views/view.h" |
17 #include "webkit/glue/webcursor.h" | 17 #include "webkit/glue/webcursor.h" |
18 #include "webkit/glue/webtextdirection.h" | 18 #include "webkit/glue/webtextdirection.h" |
19 | 19 |
20 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
21 #include "base/gfx/gdi_util.h" | 21 #include "base/gfx/gdi_util.h" |
22 #include "chrome/app/chrome_dll_resource.h" | 22 #include "chrome/app/chrome_dll_resource.h" |
23 #include "chrome/common/win_util.h" | |
24 #endif // defined(OS_WIN) | 23 #endif // defined(OS_WIN) |
25 | 24 |
26 using base::Time; | 25 using base::Time; |
27 using base::TimeDelta; | 26 using base::TimeDelta; |
28 using base::TimeTicks; | 27 using base::TimeTicks; |
29 | 28 |
30 using WebKit::WebInputEvent; | 29 using WebKit::WebInputEvent; |
31 using WebKit::WebKeyboardEvent; | 30 using WebKit::WebKeyboardEvent; |
32 using WebKit::WebMouseEvent; | 31 using WebKit::WebMouseEvent; |
33 using WebKit::WebMouseWheelEvent; | 32 using WebKit::WebMouseWheelEvent; |
(...skipping 690 matching lines...) Loading... |
724 | 723 |
725 // TODO(darin): do we need to do something else if our backing store is not | 724 // TODO(darin): do we need to do something else if our backing store is not |
726 // the same size as the advertised view? maybe we just assume there is a | 725 // the same size as the advertised view? maybe we just assume there is a |
727 // full paint on its way? | 726 // full paint on its way? |
728 BackingStore* backing_store = BackingStoreManager::Lookup(this); | 727 BackingStore* backing_store = BackingStoreManager::Lookup(this); |
729 if (!backing_store || (backing_store->size() != view_size)) | 728 if (!backing_store || (backing_store->size() != view_size)) |
730 return; | 729 return; |
731 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, | 730 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, |
732 dx, dy, clip_rect, view_size); | 731 dx, dy, clip_rect, view_size); |
733 } | 732 } |
OLD | NEW |