| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 const SaveFileCompletion& on_success, | 135 const SaveFileCompletion& on_success, |
| 136 const FileSelectionCanceled& on_failure); | 136 const FileSelectionCanceled& on_failure); |
| 137 | 137 |
| 138 void HandleSelectFolder(const base::string16& title, | 138 void HandleSelectFolder(const base::string16& title, |
| 139 const SelectFolderCompletion& on_success, | 139 const SelectFolderCompletion& on_success, |
| 140 const FileSelectionCanceled& on_failure); | 140 const FileSelectionCanceled& on_failure); |
| 141 | 141 |
| 142 // Returns the active ASH root window. | 142 // Returns the active ASH root window. |
| 143 Window* GetAshWindow(); | 143 Window* GetAshWindow(); |
| 144 | 144 |
| 145 // Returns true if the remote window is the foreground window according to the |
| 146 // OS. |
| 147 bool IsForegroundWindow(); |
| 148 |
| 145 private: | 149 private: |
| 146 explicit RemoteRootWindowHostWin(const gfx::Rect& bounds); | 150 explicit RemoteRootWindowHostWin(const gfx::Rect& bounds); |
| 147 virtual ~RemoteRootWindowHostWin(); | 151 virtual ~RemoteRootWindowHostWin(); |
| 148 | 152 |
| 149 // IPC message handing methods: | 153 // IPC message handing methods: |
| 150 void OnMouseMoved(int32 x, int32 y, int32 flags); | 154 void OnMouseMoved(int32 x, int32 y, int32 flags); |
| 151 void OnMouseButton(int32 x, | 155 void OnMouseButton(int32 x, |
| 152 int32 y, | 156 int32 y, |
| 153 int32 extra, | 157 int32 extra, |
| 154 ui::EventType type, | 158 ui::EventType type, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 // State of the keyboard/mouse at the time of the last input event. See | 264 // State of the keyboard/mouse at the time of the last input event. See |
| 261 // description of SetEventFlags(). | 265 // description of SetEventFlags(). |
| 262 uint32 event_flags_; | 266 uint32 event_flags_; |
| 263 | 267 |
| 264 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); | 268 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); |
| 265 }; | 269 }; |
| 266 | 270 |
| 267 } // namespace aura | 271 } // namespace aura |
| 268 | 272 |
| 269 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ | 273 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |