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

Side by Side Diff: content/common/cursors/webcursor.h

Issue 1927463002: Rename gfx::Display/Screen to display::Display/Screen in content/ (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
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 CONTENT_COMMON_CURSORS_WEBCURSOR_H_ 5 #ifndef CONTENT_COMMON_CURSORS_WEBCURSOR_H_
6 #define CONTENT_COMMON_CURSORS_WEBCURSOR_H_ 6 #define CONTENT_COMMON_CURSORS_WEBCURSOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "third_party/WebKit/public/platform/WebCursorInfo.h" 13 #include "third_party/WebKit/public/platform/WebCursorInfo.h"
14 #include "ui/gfx/display.h" 14 #include "ui/display/display.h"
15 #include "ui/gfx/geometry/point.h" 15 #include "ui/gfx/geometry/point.h"
16 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 18
19 #if defined(USE_AURA) 19 #if defined(USE_AURA)
20 #include "ui/base/cursor/cursor.h" 20 #include "ui/base/cursor/cursor.h"
21 #endif 21 #endif
22 22
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 typedef struct HINSTANCE__* HINSTANCE; 24 typedef struct HINSTANCE__* HINSTANCE;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // Initialize this from the given Windows cursor. The caller must ensure that 102 // Initialize this from the given Windows cursor. The caller must ensure that
103 // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon 103 // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon
104 // APIs on it. 104 // APIs on it.
105 void InitFromExternalCursor(HCURSOR handle); 105 void InitFromExternalCursor(HCURSOR handle);
106 #endif 106 #endif
107 107
108 #if defined(USE_AURA) 108 #if defined(USE_AURA)
109 ui::PlatformCursor GetPlatformCursor(); 109 ui::PlatformCursor GetPlatformCursor();
110 110
111 // Updates |device_scale_factor_| and |rotation_| based on |display|. 111 // Updates |device_scale_factor_| and |rotation_| based on |display|.
112 void SetDisplayInfo(const gfx::Display& display); 112 void SetDisplayInfo(const display::Display& display);
113 113
114 float GetCursorScaleFactor(); 114 float GetCursorScaleFactor();
115 115
116 void CreateScaledBitmapAndHotspotFromCustomData( 116 void CreateScaledBitmapAndHotspotFromCustomData(
117 SkBitmap* bitmap, 117 SkBitmap* bitmap,
118 gfx::Point* hotspot); 118 gfx::Point* hotspot);
119 FRIEND_TEST_ALL_PREFIXES(WebCursorTest, 119 FRIEND_TEST_ALL_PREFIXES(WebCursorTest,
120 CreateScaledBitmapAndHotspotFromCustomData); 120 CreateScaledBitmapAndHotspotFromCustomData);
121 121
122 #elif defined(OS_WIN) 122 #elif defined(OS_WIN)
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 ui::PlatformCursor platform_cursor_; 190 ui::PlatformCursor platform_cursor_;
191 #elif defined(OS_WIN) 191 #elif defined(OS_WIN)
192 // A custom cursor created from custom bitmap data by Webkit. 192 // A custom cursor created from custom bitmap data by Webkit.
193 HCURSOR custom_cursor_; 193 HCURSOR custom_cursor_;
194 #endif 194 #endif
195 #if defined(USE_AURA) 195 #if defined(USE_AURA)
196 float device_scale_factor_; 196 float device_scale_factor_;
197 #endif 197 #endif
198 198
199 #if defined(USE_OZONE) 199 #if defined(USE_OZONE)
200 gfx::Display::Rotation rotation_; 200 display::Display::Rotation rotation_;
201 gfx::Size maximum_cursor_size_; 201 gfx::Size maximum_cursor_size_;
202 #endif 202 #endif
203 }; 203 };
204 204
205 } // namespace content 205 } // namespace content
206 206
207 #endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_ 207 #endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | content/common/cursors/webcursor_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698