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

Side by Side Diff: ui/base/cursor/ozone/cursor_factory_ozone.h

Issue 262163003: [Ozone] Proper cursor support for multi-monitor configurations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetActiveWindow -> GetCursorWindow Created 6 years, 7 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/aura/window_tree_host_ozone.cc ('k') | ui/base/cursor/ozone/cursor_factory_ozone.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ 5 #ifndef UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_
6 #define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ 6 #define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_
7 7
8 #include "ui/base/cursor/cursor.h" 8 #include "ui/base/cursor/cursor.h"
9 #include "ui/base/ui_base_export.h" 9 #include "ui/base/ui_base_export.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 25 matching lines...) Expand all
36 // Increment platform image cursor refcount. 36 // Increment platform image cursor refcount.
37 virtual void RefImageCursor(PlatformCursor cursor); 37 virtual void RefImageCursor(PlatformCursor cursor);
38 38
39 // Decrement platform image cursor refcount. 39 // Decrement platform image cursor refcount.
40 virtual void UnrefImageCursor(PlatformCursor cursor); 40 virtual void UnrefImageCursor(PlatformCursor cursor);
41 41
42 // Change the active cursor for an AcceleratedWidget. 42 // Change the active cursor for an AcceleratedWidget.
43 // TODO(spang): Move this. 43 // TODO(spang): Move this.
44 virtual void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor cursor); 44 virtual void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor cursor);
45 45
46 // Returns the window on which the cursor is active.
47 // TODO(dnicoara) Move this once the WindowTreeHost refactoring finishes and
48 // WindowTreeHost::CanDispatchEvent() is no longer present.
49 virtual gfx::AcceleratedWidget GetCursorWindow();
50
46 private: 51 private:
47 static CursorFactoryOzone* impl_; // not owned 52 static CursorFactoryOzone* impl_; // not owned
48 }; 53 };
49 54
50 } // namespace gfx 55 } // namespace gfx
51 56
52 #endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_ 57 #endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_ozone.cc ('k') | ui/base/cursor/ozone/cursor_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698