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

Side by Side Diff: ash/test/test_metro_viewer_process_host.cc

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | « ash/test/ash_test_base.cc ('k') | ash/test/test_shell_delegate.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ash/test/test_metro_viewer_process_host.h" 5 #include "ash/test/test_metro_viewer_process_host.h"
6 6
7 #include <windef.h> 7 #include <windef.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "ui/aura/remote_root_window_host_win.h" 10 #include "ui/aura/remote_root_window_host_win.h"
11 #include "ui/surface/accelerated_surface_win.h" 11 #include "ui/surface/accelerated_surface_win.h"
12 12
13 namespace ash { 13 namespace ash {
14 namespace test { 14 namespace test {
15 15
16 TestMetroViewerProcessHost::TestMetroViewerProcessHost( 16 TestMetroViewerProcessHost::TestMetroViewerProcessHost(
17 base::SingleThreadTaskRunner* ipc_task_runner) 17 base::SingleThreadTaskRunner* ipc_task_runner)
18 : MetroViewerProcessHost(ipc_task_runner), closed_unexpectedly_(false) { 18 : MetroViewerProcessHost(ipc_task_runner), closed_unexpectedly_(false) {
19 } 19 }
20 20
21 TestMetroViewerProcessHost::~TestMetroViewerProcessHost() { 21 TestMetroViewerProcessHost::~TestMetroViewerProcessHost() {
22 } 22 }
23 23
24 void TestMetroViewerProcessHost::OnChannelError() { 24 void TestMetroViewerProcessHost::OnChannelError() {
25 closed_unexpectedly_ = true; 25 closed_unexpectedly_ = true;
26 aura::RemoteRootWindowHostWin::Instance()->Disconnected(); 26 aura::RemoteWindowTreeHostWin::Instance()->Disconnected();
27 } 27 }
28 28
29 void TestMetroViewerProcessHost::OnSetTargetSurface( 29 void TestMetroViewerProcessHost::OnSetTargetSurface(
30 gfx::NativeViewId target_surface) { 30 gfx::NativeViewId target_surface) {
31 DLOG(INFO) << __FUNCTION__ << ", target_surface = " << target_surface; 31 DLOG(INFO) << __FUNCTION__ << ", target_surface = " << target_surface;
32 HWND hwnd = reinterpret_cast<HWND>(target_surface); 32 HWND hwnd = reinterpret_cast<HWND>(target_surface);
33 aura::RemoteRootWindowHostWin::Instance()->Connected(this, hwnd); 33 aura::RemoteWindowTreeHostWin::Instance()->Connected(this, hwnd);
34 34
35 backing_surface_.reset(new AcceleratedSurface(hwnd)); 35 backing_surface_.reset(new AcceleratedSurface(hwnd));
36 } 36 }
37 37
38 void TestMetroViewerProcessHost::OnOpenURL(const base::string16& url) { 38 void TestMetroViewerProcessHost::OnOpenURL(const base::string16& url) {
39 } 39 }
40 40
41 void TestMetroViewerProcessHost::OnHandleSearchRequest( 41 void TestMetroViewerProcessHost::OnHandleSearchRequest(
42 const base::string16& search_string) { 42 const base::string16& search_string) {
43 } 43 }
44 44
45 void TestMetroViewerProcessHost::OnWindowSizeChanged(uint32 width, 45 void TestMetroViewerProcessHost::OnWindowSizeChanged(uint32 width,
46 uint32 height) { 46 uint32 height) {
47 } 47 }
48 48
49 } // namespace test 49 } // namespace test
50 } // namespace ash 50 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698