blob: 63ca815c33d30a39ceabe6c4184ab693fcc413c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
#define ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
#include <string>
#include "win8/viewer/metro_viewer_process_host.h"
class AcceleratedSurface;
namespace ash {
namespace test {
class TestMetroViewerProcessHost : public win8::MetroViewerProcessHost {
public:
TestMetroViewerProcessHost(const std::string& ipc_channel_name,
base::SingleThreadTaskRunner* ipc_task_runner);
virtual ~TestMetroViewerProcessHost();
bool closed_unexpectedly() { return closed_unexpectedly_; }
private:
// win8::MetroViewerProcessHost implementation
virtual void OnChannelError() OVERRIDE;
virtual void OnSetTargetSurface(gfx::NativeViewId target_surface) OVERRIDE;
virtual void OnOpenURL(const string16& url) OVERRIDE;
virtual void OnHandleSearchRequest(const string16& search_string) OVERRIDE;
scoped_ptr<AcceleratedSurface> backing_surface;
bool closed_unexpectedly_;
DISALLOW_COPY_AND_ASSIGN(TestMetroViewerProcessHost);
};
} // namespace test
} // namespace ash
#endif // ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
|