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

Side by Side Diff: ui/aura/desktop/desktop_cursor_client.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_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ 5 #ifndef UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
6 #define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ 6 #define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
(...skipping 16 matching lines...) Expand all
27 // Overridden from client::CursorClient: 27 // Overridden from client::CursorClient:
28 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 28 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
29 virtual void ShowCursor(bool show) OVERRIDE; 29 virtual void ShowCursor(bool show) OVERRIDE;
30 virtual bool IsCursorVisible() const OVERRIDE; 30 virtual bool IsCursorVisible() const OVERRIDE;
31 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; 31 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE;
32 32
33 private: 33 private:
34 aura::RootWindow* root_window_; 34 aura::RootWindow* root_window_;
35 scoped_ptr<ui::CursorLoader> cursor_loader_; 35 scoped_ptr<ui::CursorLoader> cursor_loader_;
36 36
37 gfx::NativeCursor current_cursor_;
38 bool cursor_visible_;
39
37 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient); 40 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient);
38 }; 41 };
39 42
40 } // namespace aura 43 } // namespace aura
41 44
42 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ 45 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698