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

Side by Side Diff: ui/base/cursor/cursor_util.h

Issue 1917083002: Move gfx::Display/Screen to display::Display/Screen in ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ui/base/cursor/cursor_loader_x11_unittest.cc ('k') | ui/base/cursor/cursor_util.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_CURSOR_UTIL_H_ 5 #ifndef UI_BASE_CURSOR_CURSOR_UTIL_H_
6 #define UI_BASE_CURSOR_CURSOR_UTIL_H_ 6 #define UI_BASE_CURSOR_CURSOR_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 #include "ui/base/ui_base_export.h" 12 #include "ui/base/ui_base_export.h"
13 #include "ui/gfx/display.h" 13 #include "ui/display/display.h"
14 #include "ui/gfx/geometry/point.h" 14 #include "ui/gfx/geometry/point.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 // Scale and rotate the cursor's bitmap and hotpoint. 18 // Scale and rotate the cursor's bitmap and hotpoint.
19 // |bitmap_in_out| and |hotpoint_in_out| are used as 19 // |bitmap_in_out| and |hotpoint_in_out| are used as
20 // both input and output. 20 // both input and output.
21 UI_BASE_EXPORT void ScaleAndRotateCursorBitmapAndHotpoint( 21 UI_BASE_EXPORT void ScaleAndRotateCursorBitmapAndHotpoint(
22 float scale, 22 float scale,
23 gfx::Display::Rotation rotation, 23 display::Display::Rotation rotation,
24 SkBitmap* bitmap_in_out, 24 SkBitmap* bitmap_in_out,
25 gfx::Point* hotpoint_in_out); 25 gfx::Point* hotpoint_in_out);
26 26
27 // Helpers for CursorLoader. 27 // Helpers for CursorLoader.
28 void GetImageCursorBitmap(int resource_id, 28 void GetImageCursorBitmap(int resource_id,
29 float scale, 29 float scale,
30 gfx::Display::Rotation rotation, 30 display::Display::Rotation rotation,
31 gfx::Point* hotspot, 31 gfx::Point* hotspot,
32 SkBitmap* bitmap); 32 SkBitmap* bitmap);
33 void GetAnimatedCursorBitmaps(int resource_id, 33 void GetAnimatedCursorBitmaps(int resource_id,
34 float scale, 34 float scale,
35 gfx::Display::Rotation rotation, 35 display::Display::Rotation rotation,
36 gfx::Point* hotspot, 36 gfx::Point* hotspot,
37 std::vector<SkBitmap>* bitmaps); 37 std::vector<SkBitmap>* bitmaps);
38 38
39 } // namespace ui 39 } // namespace ui
40 40
41 #endif // UI_BASE_CURSOR_CURSOR_UTIL_H_ 41 #endif // UI_BASE_CURSOR_CURSOR_UTIL_H_
OLDNEW
« no previous file with comments | « ui/base/cursor/cursor_loader_x11_unittest.cc ('k') | ui/base/cursor/cursor_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698