Avoid using ToInternalValue in computing timings, so that the timings are consistent...
[chromium-blink-merge.git] / ash / test / test_metro_viewer_process_host.h
blobf04ff0f0f3f902dbac355eebd8bc1d866c7e8fa6
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_
8 #include "base/memory/scoped_ptr.h"
9 #include "win8/viewer/metro_viewer_process_host.h"
11 class AcceleratedSurface;
13 namespace ash {
14 namespace test {
16 class TestMetroViewerProcessHost : public win8::MetroViewerProcessHost {
17 public:
18 TestMetroViewerProcessHost(base::SingleThreadTaskRunner* ipc_task_runner);
19 virtual ~TestMetroViewerProcessHost();
21 bool closed_unexpectedly() { return closed_unexpectedly_; }
23 private:
24 // win8::MetroViewerProcessHost implementation
25 virtual void OnChannelError() OVERRIDE;
26 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface,
27 float device_scale) OVERRIDE;
28 virtual void OnOpenURL(const base::string16& url) OVERRIDE;
29 virtual void OnHandleSearchRequest(
30 const base::string16& search_string) OVERRIDE;
31 virtual void OnWindowSizeChanged(uint32 width, uint32 height) OVERRIDE;
33 bool closed_unexpectedly_;
35 DISALLOW_COPY_AND_ASSIGN(TestMetroViewerProcessHost);
39 } // namespace test
40 } // namespace ash
42 #endif // ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_