| 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 "chrome/test/base/ui_test_utils.h" | 5 #include "chrome/test/base/ui_test_utils.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 #if defined(USE_AURA) | 69 #if defined(USE_AURA) |
| 70 #include "ash/shell.h" | 70 #include "ash/shell.h" |
| 71 #include "ui/aura/root_window.h" | 71 #include "ui/aura/root_window.h" |
| 72 #endif | 72 #endif |
| 73 | 73 |
| 74 using content::DomOperationNotificationDetails; | 74 using content::DomOperationNotificationDetails; |
| 75 using content::NavigationController; | 75 using content::NavigationController; |
| 76 using content::NavigationEntry; | 76 using content::NavigationEntry; |
| 77 using content::OpenURLParams; | 77 using content::OpenURLParams; |
| 78 using content::RenderViewHost; |
| 79 using content::RenderWidgetHost; |
| 78 using content::Referrer; | 80 using content::Referrer; |
| 79 using content::WebContents; | 81 using content::WebContents; |
| 80 | 82 |
| 81 static const int kDefaultWsPort = 8880; | 83 static const int kDefaultWsPort = 8880; |
| 82 | 84 |
| 83 namespace ui_test_utils { | 85 namespace ui_test_utils { |
| 84 | 86 |
| 85 namespace { | 87 namespace { |
| 86 | 88 |
| 87 class DOMOperationObserver : public content::NotificationObserver, | 89 class DOMOperationObserver : public content::NotificationObserver, |
| (...skipping 1050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); | 1140 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); |
| 1139 } | 1141 } |
| 1140 | 1142 |
| 1141 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { | 1143 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { |
| 1142 DCHECK(bitmap); | 1144 DCHECK(bitmap); |
| 1143 SnapshotTaker taker; | 1145 SnapshotTaker taker; |
| 1144 return taker.TakeEntirePageSnapshot(rvh, bitmap); | 1146 return taker.TakeEntirePageSnapshot(rvh, bitmap); |
| 1145 } | 1147 } |
| 1146 | 1148 |
| 1147 } // namespace ui_test_utils | 1149 } // namespace ui_test_utils |
| OLD | NEW |