| 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_WINDOW_TREE_HOST_WIN_H_ | 5 #ifndef UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 6 #define UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void HandleWindowSizeChanged(uint32 width, uint32 height); | 165 void HandleWindowSizeChanged(uint32 width, uint32 height); |
| 166 | 166 |
| 167 // Returns the active ASH root window. | 167 // Returns the active ASH root window. |
| 168 Window* GetAshWindow(); | 168 Window* GetAshWindow(); |
| 169 | 169 |
| 170 // Returns true if the remote window is the foreground window according to the | 170 // Returns true if the remote window is the foreground window according to the |
| 171 // OS. | 171 // OS. |
| 172 bool IsForegroundWindow(); | 172 bool IsForegroundWindow(); |
| 173 | 173 |
| 174 protected: | 174 protected: |
| 175 RemoteWindowTreeHostWin(); | 175 explicit RemoteWindowTreeHostWin(ui::ContextFactory* context_factory); |
| 176 virtual ~RemoteWindowTreeHostWin(); | 176 virtual ~RemoteWindowTreeHostWin(); |
| 177 | 177 |
| 178 private: | 178 private: |
| 179 // IPC message handing methods: | 179 // IPC message handing methods: |
| 180 void OnMouseMoved(int32 x, int32 y, int32 flags); | 180 void OnMouseMoved(int32 x, int32 y, int32 flags); |
| 181 void OnMouseButton(const MetroViewerHostMsg_MouseButtonParams& params); | 181 void OnMouseButton(const MetroViewerHostMsg_MouseButtonParams& params); |
| 182 void OnKeyDown(uint32 vkey, | 182 void OnKeyDown(uint32 vkey, |
| 183 uint32 repeat_count, | 183 uint32 repeat_count, |
| 184 uint32 scan_code, | 184 uint32 scan_code, |
| 185 uint32 flags); | 185 uint32 flags); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 294 |
| 295 // Current size of this root window. | 295 // Current size of this root window. |
| 296 gfx::Size window_size_; | 296 gfx::Size window_size_; |
| 297 | 297 |
| 298 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); | 298 DISALLOW_COPY_AND_ASSIGN(RemoteWindowTreeHostWin); |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace aura | 301 } // namespace aura |
| 302 | 302 |
| 303 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ | 303 #endif // UI_AURA_REMOTE_WINDOW_TREE_HOST_WIN_H_ |
| OLD | NEW |