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

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

Issue 93863005: ui: Rename ui_export.h to ui_base_export.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: UI_BASE_IMPLEMENTATION Created 6 years, 11 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/base/cursor/cursor_loader_x11.h ('k') | ui/base/default_theme_provider.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CURSORS_AURA_H_ 5 #ifndef UI_BASE_CURSOR_CURSORS_AURA_H_
6 #define UI_BASE_CURSOR_CURSORS_AURA_H_ 6 #define UI_BASE_CURSOR_CURSORS_AURA_H_
7 7
8 #include "ui/base/cursor/cursor.h" 8 #include "ui/base/cursor/cursor.h"
9 #include "ui/base/ui_export.h" 9 #include "ui/base/ui_base_export.h"
10 10
11 class SkBitmap; 11 class SkBitmap;
12 12
13 namespace gfx { 13 namespace gfx {
14 class Point; 14 class Point;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 18
19 const int kAnimatedCursorFrameDelayMs = 25; 19 const int kAnimatedCursorFrameDelayMs = 25;
20 20
21 // Returns data about |id|, where id is a cursor constant like 21 // Returns data about |id|, where id is a cursor constant like
22 // ui::kCursorHelp. The IDR will be placed in |resource_id| and the hotspots 22 // ui::kCursorHelp. The IDR will be placed in |resource_id| and the hotspots
23 // for the different DPIs will be placed in |hot_1x| and |hot_2x|. Returns 23 // for the different DPIs will be placed in |hot_1x| and |hot_2x|. Returns
24 // false if |id| is invalid. 24 // false if |id| is invalid.
25 bool UI_EXPORT GetCursorDataFor(CursorSetType cursor_set_id, 25 bool UI_BASE_EXPORT GetCursorDataFor(CursorSetType cursor_set_id,
26 int id, 26 int id,
27 float scale_factor, 27 float scale_factor,
28 int* resource_id, 28 int* resource_id,
29 gfx::Point* point); 29 gfx::Point* point);
30 30
31 // Like above, but for animated cursors. 31 // Like above, but for animated cursors.
32 bool UI_EXPORT GetAnimatedCursorDataFor(CursorSetType cursor_set_id, 32 bool UI_BASE_EXPORT GetAnimatedCursorDataFor(CursorSetType cursor_set_id,
33 int id, 33 int id,
34 float scale_factor, 34 float scale_factor,
35 int* resource_id, 35 int* resource_id,
36 gfx::Point* point); 36 gfx::Point* point);
37 37
38 // Returns the cursor bitmap for |cursor|. Returns false if |cursor| is invalid. 38 // Returns the cursor bitmap for |cursor|. Returns false if |cursor| is invalid.
39 // The cursor hot point location is set in |point|. 39 // The cursor hot point location is set in |point|.
40 bool UI_EXPORT GetCursorBitmap(const Cursor& cursor, 40 bool UI_BASE_EXPORT
41 SkBitmap* bitmap, 41 GetCursorBitmap(const Cursor& cursor, SkBitmap* bitmap, gfx::Point* point);
42 gfx::Point* point);
43 42
44 } // namespace ui 43 } // namespace ui
45 44
46 #endif // UI_BASE_CURSOR_CURSORS_AURA_H_ 45 #endif // UI_BASE_CURSOR_CURSORS_AURA_H_
OLDNEW
« no previous file with comments | « ui/base/cursor/cursor_loader_x11.h ('k') | ui/base/default_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698