Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: ui/views/widget/desktop_root_window_host_win.h

Issue 11035050: Enable CursorManager::LockCursor to lock cursor visibility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include "ui/aura/root_window_host.h" 8 #include "ui/aura/root_window_host.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/desktop_root_window_host.h" 10 #include "ui/views/widget/desktop_root_window_host.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 93 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
94 virtual void Show() OVERRIDE; 94 virtual void Show() OVERRIDE;
95 virtual void Hide() OVERRIDE; 95 virtual void Hide() OVERRIDE;
96 virtual void ToggleFullScreen() OVERRIDE; 96 virtual void ToggleFullScreen() OVERRIDE;
97 virtual gfx::Rect GetBounds() const OVERRIDE; 97 virtual gfx::Rect GetBounds() const OVERRIDE;
98 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 98 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
99 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE; 99 virtual gfx::Point GetLocationOnNativeScreen() const OVERRIDE;
100 virtual void SetCapture() OVERRIDE; 100 virtual void SetCapture() OVERRIDE;
101 virtual void ReleaseCapture() OVERRIDE; 101 virtual void ReleaseCapture() OVERRIDE;
102 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 102 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
103 virtual void ShowCursor(bool show) OVERRIDE;
104 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE; 103 virtual bool QueryMouseLocation(gfx::Point* location_return) OVERRIDE;
105 virtual bool ConfineCursorToRootWindow() OVERRIDE; 104 virtual bool ConfineCursorToRootWindow() OVERRIDE;
106 virtual void UnConfineCursor() OVERRIDE; 105 virtual void UnConfineCursor() OVERRIDE;
107 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 106 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
108 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; 107 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
109 virtual bool GrabSnapshot( 108 virtual bool GrabSnapshot(
110 const gfx::Rect& snapshot_bounds, 109 const gfx::Rect& snapshot_bounds,
111 std::vector<unsigned char>* png_representation) OVERRIDE; 110 std::vector<unsigned char>* png_representation) OVERRIDE;
112 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 111 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
113 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 112 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 216
218 // A simple cursor client which just forwards events to the RootWindow. 217 // A simple cursor client which just forwards events to the RootWindow.
219 scoped_ptr<aura::DesktopCursorClient> cursor_client_; 218 scoped_ptr<aura::DesktopCursorClient> cursor_client_;
220 219
221 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); 220 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin);
222 }; 221 };
223 222
224 } // namespace views 223 } // namespace views
225 224
226 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 225 #endif // UI_VIEWS_WIDGET_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698