| OLD | NEW |
| 1 // Copyright (c) 2006-2008 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/gfx/native_widget_types.h" | 7 #include "base/gfx/native_widget_types.h" |
| 8 #include "base/histogram.h" | 8 #include "base/histogram.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/keyboard_codes.h" | 10 #include "base/keyboard_codes.h" |
| 11 #include "chrome/browser/renderer_host/backing_store.h" | 11 #include "chrome/browser/renderer_host/backing_store.h" |
| (...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 | 683 |
| 684 // TODO(darin): do we need to do something else if our backing store is not | 684 // TODO(darin): do we need to do something else if our backing store is not |
| 685 // the same size as the advertised view? maybe we just assume there is a | 685 // the same size as the advertised view? maybe we just assume there is a |
| 686 // full paint on its way? | 686 // full paint on its way? |
| 687 BackingStore* backing_store = BackingStoreManager::Lookup(this); | 687 BackingStore* backing_store = BackingStoreManager::Lookup(this); |
| 688 if (!backing_store || (backing_store->size() != view_size)) | 688 if (!backing_store || (backing_store->size() != view_size)) |
| 689 return; | 689 return; |
| 690 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, | 690 backing_store->ScrollRect(process_->process().handle(), bitmap, bitmap_rect, |
| 691 dx, dy, clip_rect, view_size); | 691 dx, dy, clip_rect, view_size); |
| 692 } | 692 } |
| OLD | NEW |