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

Side by Side Diff: ui/wm/public/cursor_delegate.h

Issue 211733003: Move GetCursor() method from WindowDelegate to its own delegate interface CursorDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 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
« no previous file with comments | « ui/wm/core/compound_event_filter.cc ('k') | ui/wm/public/cursor_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UI_WM_PUBLIC_CURSOR_DELEGATE_H_
6 #define UI_WM_PUBLIC_CURSOR_DELEGATE_H_
7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/wm/core/wm_core_export.h"
10
11 namespace aura {
12 class Window;
13 }
14
15 namespace gfx {
16 class Point;
17 }
18
19 namespace wm {
20
21 class WM_CORE_EXPORT CursorDelegate {
22 public:
23 virtual gfx::NativeCursor GetCursorForPoint(const gfx::Point& point) = 0;
24
25 protected:
26 virtual ~CursorDelegate() {}
27 };
28
29 WM_CORE_EXPORT void SetCursorDelegate(aura::Window* window,
30 CursorDelegate* delegate);
31 WM_CORE_EXPORT CursorDelegate* GetCursorDelegate(aura::Window* window);
32
33 } // namespace wm
34
35 #endif // UI_WM_PUBLIC_CURSOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/wm/core/compound_event_filter.cc ('k') | ui/wm/public/cursor_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698