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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker_tester.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: Respond to review comments. 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/browser/chromeos/login/screen_locker_tester.h" 5 #include "chrome/browser/chromeos/login/screen_locker_tester.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 views::Widget* WebUIScreenLockerTester::GetWidget() const { 173 views::Widget* WebUIScreenLockerTester::GetWidget() const {
174 return webui_screen_locker()->lock_window_; 174 return webui_screen_locker()->lock_window_;
175 } 175 }
176 176
177 views::Widget* WebUIScreenLockerTester::GetChildWidget() const { 177 views::Widget* WebUIScreenLockerTester::GetChildWidget() const {
178 return webui_screen_locker()->lock_window_; 178 return webui_screen_locker()->lock_window_;
179 } 179 }
180 180
181 base::Value* WebUIScreenLockerTester::ExecuteJavascriptAndGetValue( 181 base::Value* WebUIScreenLockerTester::ExecuteJavascriptAndGetValue(
182 const std::string& js_text) { 182 const std::string& js_text) {
183 RenderViewHost* rvh = webui()->GetWebContents()->GetRenderViewHost(); 183 content::RenderViewHost* rvh = webui()->GetWebContents()->GetRenderViewHost();
184 return rvh->ExecuteJavascriptAndGetValue(string16(), 184 return rvh->ExecuteJavascriptAndGetValue(string16(),
185 ASCIIToUTF16(js_text)); 185 ASCIIToUTF16(js_text));
186 } 186 }
187 187
188 WebUIScreenLocker* WebUIScreenLockerTester::webui_screen_locker() const { 188 WebUIScreenLocker* WebUIScreenLockerTester::webui_screen_locker() const {
189 DCHECK(ScreenLocker::screen_locker_); 189 DCHECK(ScreenLocker::screen_locker_);
190 return static_cast<WebUIScreenLocker*>( 190 return static_cast<WebUIScreenLocker*>(
191 ScreenLocker::screen_locker_->delegate_.get()); 191 ScreenLocker::screen_locker_->delegate_.get());
192 } 192 }
193 193
(...skipping 22 matching lines...) Expand all
216 new MockAuthenticator(ScreenLocker::screen_locker_, user, password)); 216 new MockAuthenticator(ScreenLocker::screen_locker_, user, password));
217 } 217 }
218 218
219 } // namespace test 219 } // namespace test
220 220
221 test::ScreenLockerTester* ScreenLocker::GetTester() { 221 test::ScreenLockerTester* ScreenLocker::GetTester() {
222 return new test::WebUIScreenLockerTester(); 222 return new test::WebUIScreenLockerTester();
223 } 223 }
224 224
225 } // namespace chromeos 225 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/boot_times_loader.cc ('k') | chrome/browser/chromeos/login/webui_login_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698