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
3 // found in the LICENSE file.
5 #ifndef ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
6 #define ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
10 #include "win8/viewer/metro_viewer_process_host.h"
12 class AcceleratedSurface
;
17 class TestMetroViewerProcessHost
: public win8::MetroViewerProcessHost
{
19 TestMetroViewerProcessHost(const std::string
& ipc_channel_name
,
20 base::SingleThreadTaskRunner
* ipc_task_runner
);
21 virtual ~TestMetroViewerProcessHost();
23 bool closed_unexpectedly() { return closed_unexpectedly_
; }
26 // win8::MetroViewerProcessHost implementation
27 virtual void OnChannelError() OVERRIDE
;
28 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface
) OVERRIDE
;
29 virtual void OnOpenURL(const string16
& url
) OVERRIDE
;
30 virtual void OnHandleSearchRequest(const string16
& search_string
) OVERRIDE
;
32 scoped_ptr
<AcceleratedSurface
> backing_surface
;
34 bool closed_unexpectedly_
;
36 DISALLOW_COPY_AND_ASSIGN(TestMetroViewerProcessHost
);
43 #endif // ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_