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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ready for review, take 2 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
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
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1130 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); 1132 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap);
1131 } 1133 }
1132 1134
1133 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { 1135 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) {
1134 DCHECK(bitmap); 1136 DCHECK(bitmap);
1135 SnapshotTaker taker; 1137 SnapshotTaker taker;
1136 return taker.TakeEntirePageSnapshot(rvh, bitmap); 1138 return taker.TakeEntirePageSnapshot(rvh, bitmap);
1137 } 1139 }
1138 1140
1139 } // namespace ui_test_utils 1141 } // namespace ui_test_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698