OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_H_ | 5 #ifndef CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_H_ |
6 #define CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_H_ | 6 #define CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "win8/viewer/metro_viewer_process_host.h" | 11 #include "win8/viewer/metro_viewer_process_host.h" |
9 | 12 |
10 namespace base { | 13 namespace base { |
11 class FilePath; | 14 class FilePath; |
12 } | 15 } |
13 | 16 |
14 class ChromeMetroViewerProcessHost : public win8::MetroViewerProcessHost { | 17 class ChromeMetroViewerProcessHost : public win8::MetroViewerProcessHost { |
15 public: | 18 public: |
16 ChromeMetroViewerProcessHost(); | 19 ChromeMetroViewerProcessHost(); |
17 ~ChromeMetroViewerProcessHost() override; | 20 ~ChromeMetroViewerProcessHost() override; |
18 | 21 |
19 private: | 22 private: |
20 // win8::MetroViewerProcessHost implementation | 23 // win8::MetroViewerProcessHost implementation |
21 void OnChannelError() override; | 24 void OnChannelError() override; |
22 | 25 |
23 // IPC::Listener implementation | 26 // IPC::Listener implementation |
24 void OnChannelConnected(int32 peer_pid) override; | 27 void OnChannelConnected(int32_t peer_pid) override; |
25 void OnSetTargetSurface(gfx::NativeViewId target_surface, | 28 void OnSetTargetSurface(gfx::NativeViewId target_surface, |
26 float device_scale) override; | 29 float device_scale) override; |
27 void OnOpenURL(const base::string16& url) override; | 30 void OnOpenURL(const base::string16& url) override; |
28 void OnHandleSearchRequest(const base::string16& search_string) override; | 31 void OnHandleSearchRequest(const base::string16& search_string) override; |
29 void OnWindowSizeChanged(uint32 width, uint32 height) override; | 32 void OnWindowSizeChanged(uint32_t width, uint32_t height) override; |
30 | 33 |
31 DISALLOW_COPY_AND_ASSIGN(ChromeMetroViewerProcessHost); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeMetroViewerProcessHost); |
32 }; | 35 }; |
33 | 36 |
34 #endif // CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_
H_ | 37 #endif // CHROME_BROWSER_METRO_VIEWER_CHROME_METRO_VIEWER_PROCESS_HOST_AURAWIN_
H_ |
OLD | NEW |