OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ |
6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 const string16& default_extension, | 63 const string16& default_extension, |
64 const SaveFileCompletion& callback); | 64 const SaveFileCompletion& callback); |
65 | 65 |
66 | 66 |
67 // RootWindowHost implementaton that receives events from a different | 67 // RootWindowHost implementaton that receives events from a different |
68 // process. In the case of Windows this is the Windows 8 (aka Metro) | 68 // process. In the case of Windows this is the Windows 8 (aka Metro) |
69 // frontend process, which forwards input events to this class. | 69 // frontend process, which forwards input events to this class. |
70 class AURA_EXPORT RemoteRootWindowHostWin : public RootWindowHost { | 70 class AURA_EXPORT RemoteRootWindowHostWin : public RootWindowHost { |
71 public: | 71 public: |
72 static RemoteRootWindowHostWin* Instance(); | 72 static RemoteRootWindowHostWin* Instance(); |
73 static RemoteRootWindowHostWin* Create(const gfx::Rect& bounds); | 73 static RemoteRootWindowHostWin* Create(const gfx::Rect& bounds, |
| 74 bool is_internal_display); |
74 | 75 |
75 // Called when the remote process has established its IPC connection. | 76 // Called when the remote process has established its IPC connection. |
76 // The |host| can be used when we need to send a message to it. | 77 // The |host| can be used when we need to send a message to it. |
77 void Connected(IPC::Sender* host); | 78 void Connected(IPC::Sender* host); |
78 // Called when the remote process has closed its IPC connection. | 79 // Called when the remote process has closed its IPC connection. |
79 void Disconnected(); | 80 void Disconnected(); |
80 | 81 |
81 // Called when we have a message from the remote process. | 82 // Called when we have a message from the remote process. |
82 bool OnMessageReceived(const IPC::Message& message); | 83 bool OnMessageReceived(const IPC::Message& message); |
83 | 84 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 OpenFileCompletion file_open_completion_callback_; | 174 OpenFileCompletion file_open_completion_callback_; |
174 OpenMultipleFilesCompletion multi_file_open_completion_callback_; | 175 OpenMultipleFilesCompletion multi_file_open_completion_callback_; |
175 SaveFileCompletion file_saveas_completion_callback_; | 176 SaveFileCompletion file_saveas_completion_callback_; |
176 | 177 |
177 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); | 178 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); |
178 }; | 179 }; |
179 | 180 |
180 } // namespace aura | 181 } // namespace aura |
181 | 182 |
182 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ | 183 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |