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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 int filter_index); | 174 int filter_index); |
175 void OnFileOpenDone(bool success, const base::FilePath& filename); | 175 void OnFileOpenDone(bool success, const base::FilePath& filename); |
176 void OnMultiFileOpenDone(bool success, | 176 void OnMultiFileOpenDone(bool success, |
177 const std::vector<base::FilePath>& files); | 177 const std::vector<base::FilePath>& files); |
178 void OnSelectFolderDone(bool success, const base::FilePath& folder); | 178 void OnSelectFolderDone(bool success, const base::FilePath& folder); |
179 void OnSetCursorPosAck(); | 179 void OnSetCursorPosAck(); |
180 void OnWindowSizeChanged(uint32 width, uint32 height); | 180 void OnWindowSizeChanged(uint32 width, uint32 height); |
181 void OnDesktopActivated(); | 181 void OnDesktopActivated(); |
182 | 182 |
183 // RootWindowHost overrides: | 183 // RootWindowHost overrides: |
184 virtual void SetDelegate(RootWindowHostDelegate* delegate) OVERRIDE; | |
185 virtual RootWindow* GetRootWindow() OVERRIDE; | 184 virtual RootWindow* GetRootWindow() OVERRIDE; |
186 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 185 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
187 virtual void Show() OVERRIDE; | 186 virtual void Show() OVERRIDE; |
188 virtual void Hide() OVERRIDE; | 187 virtual void Hide() OVERRIDE; |
189 virtual void ToggleFullScreen() OVERRIDE; | 188 virtual void ToggleFullScreen() OVERRIDE; |
190 virtual gfx::Rect GetBounds() const OVERRIDE; | 189 virtual gfx::Rect GetBounds() const OVERRIDE; |
191 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; | 190 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
192 virtual gfx::Insets GetInsets() const OVERRIDE; | 191 virtual gfx::Insets GetInsets() const OVERRIDE; |
193 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; | 192 virtual void SetInsets(const gfx::Insets& insets) OVERRIDE; |
194 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; | 193 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; |
195 virtual void SetCapture() OVERRIDE; | 194 virtual void SetCapture() OVERRIDE; |
196 virtual void ReleaseCapture() OVERRIDE; | 195 virtual void ReleaseCapture() OVERRIDE; |
197 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 196 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
198 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; | 197 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; |
199 virtual bool ConfineCursorToRootWindow() OVERRIDE; | 198 virtual bool ConfineCursorToRootWindow() OVERRIDE; |
200 virtual void UnConfineCursor() OVERRIDE; | 199 virtual void UnConfineCursor() OVERRIDE; |
201 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; | 200 virtual void OnCursorVisibilityChanged(bool show) OVERRIDE; |
202 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; | 201 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; |
203 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; | |
204 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; | 202 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; |
205 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 203 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
206 virtual void PrepareForShutdown() OVERRIDE; | 204 virtual void PrepareForShutdown() OVERRIDE; |
207 | 205 |
208 // Helper function to dispatch a keyboard message to the desired target. | 206 // Helper function to dispatch a keyboard message to the desired target. |
209 // The default target is the RootWindowHostDelegate. For nested message loop | 207 // The default target is the RootWindowHostDelegate. For nested message loop |
210 // invocations we post a synthetic keyboard message directly into the message | 208 // invocations we post a synthetic keyboard message directly into the message |
211 // loop. The dispatcher for the nested loop would then decide how this | 209 // loop. The dispatcher for the nested loop would then decide how this |
212 // message is routed. | 210 // message is routed. |
213 void DispatchKeyboardMessage(ui::EventType type, | 211 void DispatchKeyboardMessage(ui::EventType type, |
(...skipping 46 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 | 258 // State of the keyboard/mouse at the time of the last input event. See |
261 // description of SetEventFlags(). | 259 // description of SetEventFlags(). |
262 uint32 event_flags_; | 260 uint32 event_flags_; |
263 | 261 |
264 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); | 262 DISALLOW_COPY_AND_ASSIGN(RemoteRootWindowHostWin); |
265 }; | 263 }; |
266 | 264 |
267 } // namespace aura | 265 } // namespace aura |
268 | 266 |
269 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ | 267 #endif // UI_AURA_REMOTE_ROOT_WINDOW_HOST_WIN_H_ |
OLD | NEW |