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

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

Issue 271543009: Send the device scale factor from Windows 8 ASH during initialization via the MetroViewerHostMsg_Se… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed tabs Created 6 years, 7 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/display/display_info.cc ('k') | ash/test/test_metro_viewer_process_host.cc » ('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 #ifndef ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_ 5 #ifndef ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
6 #define ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_ 6 #define ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "win8/viewer/metro_viewer_process_host.h" 9 #include "win8/viewer/metro_viewer_process_host.h"
10 10
11 class AcceleratedSurface; 11 class AcceleratedSurface;
12 12
13 namespace ash { 13 namespace ash {
14 namespace test { 14 namespace test {
15 15
16 class TestMetroViewerProcessHost : public win8::MetroViewerProcessHost { 16 class TestMetroViewerProcessHost : public win8::MetroViewerProcessHost {
17 public: 17 public:
18 TestMetroViewerProcessHost(base::SingleThreadTaskRunner* ipc_task_runner); 18 TestMetroViewerProcessHost(base::SingleThreadTaskRunner* ipc_task_runner);
19 virtual ~TestMetroViewerProcessHost(); 19 virtual ~TestMetroViewerProcessHost();
20 20
21 bool closed_unexpectedly() { return closed_unexpectedly_; } 21 bool closed_unexpectedly() { return closed_unexpectedly_; }
22 22
23 private: 23 private:
24 // win8::MetroViewerProcessHost implementation 24 // win8::MetroViewerProcessHost implementation
25 virtual void OnChannelError() OVERRIDE; 25 virtual void OnChannelError() OVERRIDE;
26 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface) OVERRIDE; 26 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface,
27 float device_scale) OVERRIDE;
27 virtual void OnOpenURL(const base::string16& url) OVERRIDE; 28 virtual void OnOpenURL(const base::string16& url) OVERRIDE;
28 virtual void OnHandleSearchRequest( 29 virtual void OnHandleSearchRequest(
29 const base::string16& search_string) OVERRIDE; 30 const base::string16& search_string) OVERRIDE;
30 virtual void OnWindowSizeChanged(uint32 width, uint32 height) OVERRIDE; 31 virtual void OnWindowSizeChanged(uint32 width, uint32 height) OVERRIDE;
31 32
32 bool closed_unexpectedly_; 33 bool closed_unexpectedly_;
33 34
34 DISALLOW_COPY_AND_ASSIGN(TestMetroViewerProcessHost); 35 DISALLOW_COPY_AND_ASSIGN(TestMetroViewerProcessHost);
35 }; 36 };
36 37
37 38
38 } // namespace test 39 } // namespace test
39 } // namespace ash 40 } // namespace ash
40 41
41 #endif // ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_ 42 #endif // ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « ash/display/display_info.cc ('k') | ash/test/test_metro_viewer_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698