OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/process_util.h" | 16 #include "base/process_util.h" |
17 #include "base/utf_string_conversions.h" | 17 #include "base/utf_string_conversions.h" |
18 #include "base/values.h" | 18 #include "base/values.h" |
19 #include "chrome/browser/automation/ui_controls.h" | 19 #include "chrome/browser/automation/ui_controls.h" |
20 #include "chrome/browser/bookmarks/bookmark_model.h" | 20 #include "chrome/browser/bookmarks/bookmark_model.h" |
21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
22 #include "chrome/browser/dom_operation_notification_details.h" | 22 #include "chrome/browser/dom_operation_notification_details.h" |
23 #include "chrome/browser/download/download_item.h" | |
24 #include "chrome/browser/download/download_manager.h" | |
25 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 24 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
27 #include "chrome/browser/ui/browser.h" | 25 #include "chrome/browser/ui/browser.h" |
28 #include "chrome/browser/ui/browser_list.h" | 26 #include "chrome/browser/ui/browser_list.h" |
29 #include "chrome/browser/ui/browser_navigator.h" | 27 #include "chrome/browser/ui/browser_navigator.h" |
30 #include "chrome/browser/ui/browser_window.h" | 28 #include "chrome/browser/ui/browser_window.h" |
31 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 29 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
32 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 30 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
33 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 31 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
34 #include "chrome/common/chrome_notification_types.h" | 32 #include "chrome/common/chrome_notification_types.h" |
35 #include "chrome/common/chrome_paths.h" | 33 #include "chrome/common/chrome_paths.h" |
36 #include "chrome/common/extensions/extension_action.h" | 34 #include "chrome/common/extensions/extension_action.h" |
37 #include "chrome/test/automation/javascript_execution_controller.h" | 35 #include "chrome/test/automation/javascript_execution_controller.h" |
38 #include "chrome/test/base/bookmark_load_observer.h" | 36 #include "chrome/test/base/bookmark_load_observer.h" |
| 37 #include "content/browser/download/download_item.h" |
| 38 #include "content/browser/download/download_manager.h" |
39 #include "content/browser/renderer_host/render_process_host.h" | 39 #include "content/browser/renderer_host/render_process_host.h" |
40 #include "content/browser/renderer_host/render_view_host.h" | 40 #include "content/browser/renderer_host/render_view_host.h" |
41 #include "content/browser/tab_contents/navigation_controller.h" | 41 #include "content/browser/tab_contents/navigation_controller.h" |
42 #include "content/browser/tab_contents/navigation_entry.h" | 42 #include "content/browser/tab_contents/navigation_entry.h" |
43 #include "content/browser/tab_contents/tab_contents.h" | 43 #include "content/browser/tab_contents/tab_contents.h" |
44 #include "googleurl/src/gurl.h" | 44 #include "googleurl/src/gurl.h" |
45 #include "net/base/net_util.h" | 45 #include "net/base/net_util.h" |
46 #include "testing/gtest/include/gtest/gtest.h" | 46 #include "testing/gtest/include/gtest/gtest.h" |
47 #include "third_party/skia/include/core/SkBitmap.h" | 47 #include "third_party/skia/include/core/SkBitmap.h" |
48 #include "third_party/skia/include/core/SkColor.h" | 48 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); | 1051 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); |
1052 } | 1052 } |
1053 | 1053 |
1054 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { | 1054 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { |
1055 DCHECK(bitmap); | 1055 DCHECK(bitmap); |
1056 SnapshotTaker taker; | 1056 SnapshotTaker taker; |
1057 return taker.TakeEntirePageSnapshot(rvh, bitmap); | 1057 return taker.TakeEntirePageSnapshot(rvh, bitmap); |
1058 } | 1058 } |
1059 | 1059 |
1060 } // namespace ui_test_utils | 1060 } // namespace ui_test_utils |
OLD | NEW |