Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Side by Side Diff: chrome/test/base/ui_test_utils.cc

Issue 9390038: Move automation/ui_controls to ui/ui_controls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win_aura fix, sync Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | chrome/test/base/ui_test_utils_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/file_path.h" 17 #include "base/file_path.h"
18 #include "base/json/json_reader.h" 18 #include "base/json/json_reader.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "base/message_loop.h" 20 #include "base/message_loop.h"
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/process_util.h" 22 #include "base/process_util.h"
23 #include "base/string_number_conversions.h" 23 #include "base/string_number_conversions.h"
24 #include "base/test/test_timeouts.h" 24 #include "base/test/test_timeouts.h"
25 #include "base/utf_string_conversions.h" 25 #include "base/utf_string_conversions.h"
26 #include "base/values.h" 26 #include "base/values.h"
27 #include "chrome/browser/automation/ui_controls.h"
28 #include "chrome/browser/bookmarks/bookmark_model.h" 27 #include "chrome/browser/bookmarks/bookmark_model.h"
29 #include "chrome/browser/browser_process.h" 28 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/search_engines/template_url_service.h" 30 #include "chrome/browser/search_engines/template_url_service.h"
32 #include "chrome/browser/search_engines/template_url_service_test_util.h" 31 #include "chrome/browser/search_engines/template_url_service_test_util.h"
33 #include "chrome/browser/tab_contents/thumbnail_generator.h" 32 #include "chrome/browser/tab_contents/thumbnail_generator.h"
34 #include "chrome/browser/ui/browser.h" 33 #include "chrome/browser/ui/browser.h"
35 #include "chrome/browser/ui/browser_list.h" 34 #include "chrome/browser/ui/browser_list.h"
36 #include "chrome/browser/ui/browser_navigator.h" 35 #include "chrome/browser/ui/browser_navigator.h"
37 #include "chrome/browser/ui/browser_window.h" 36 #include "chrome/browser/ui/browser_window.h"
(...skipping 16 matching lines...) Expand all
54 #include "content/public/browser/render_view_host_delegate.h" 53 #include "content/public/browser/render_view_host_delegate.h"
55 #include "content/public/browser/web_contents.h" 54 #include "content/public/browser/web_contents.h"
56 #include "content/public/browser/web_contents_observer.h" 55 #include "content/public/browser/web_contents_observer.h"
57 #include "content/test/test_navigation_observer.h" 56 #include "content/test/test_navigation_observer.h"
58 #include "googleurl/src/gurl.h" 57 #include "googleurl/src/gurl.h"
59 #include "net/base/net_util.h" 58 #include "net/base/net_util.h"
60 #include "testing/gtest/include/gtest/gtest.h" 59 #include "testing/gtest/include/gtest/gtest.h"
61 #include "third_party/skia/include/core/SkBitmap.h" 60 #include "third_party/skia/include/core/SkBitmap.h"
62 #include "third_party/skia/include/core/SkColor.h" 61 #include "third_party/skia/include/core/SkColor.h"
63 #include "ui/gfx/size.h" 62 #include "ui/gfx/size.h"
63 #include "ui/ui_controls/ui_controls.h"
64 64
65 #if defined(TOOLKIT_VIEWS) 65 #if defined(TOOLKIT_VIEWS)
66 #include "ui/views/focus/accelerator_handler.h" 66 #include "ui/views/focus/accelerator_handler.h"
67 #endif 67 #endif
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
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 SnapshotTaker taker; 1140 SnapshotTaker taker;
1141 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); 1141 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap);
1142 } 1142 }
1143 1143
1144 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { 1144 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) {
1145 DCHECK(bitmap); 1145 DCHECK(bitmap);
1146 SnapshotTaker taker; 1146 SnapshotTaker taker;
1147 return taker.TakeEntirePageSnapshot(rvh, bitmap); 1147 return taker.TakeEntirePageSnapshot(rvh, bitmap);
1148 } 1148 }
1149 1149
1150 namespace internal {
1151
1152 void ClickTask(ui_controls::MouseButton button,
1153 int state,
1154 const base::Closure& followup) {
1155 if (!followup.is_null())
1156 ui_controls::SendMouseEventsNotifyWhenDone(button, state, followup);
1157 else
1158 ui_controls::SendMouseEvents(button, state);
1159 }
1160
1161 } // namespace internal
1150 } // namespace ui_test_utils 1162 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/base/ui_test_utils.h ('k') | chrome/test/base/ui_test_utils_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698