OLD | NEW |
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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 gfx::NativeCursor GetNativeCursor(); | 97 gfx::NativeCursor GetNativeCursor(); |
98 | 98 |
99 #if defined(OS_WIN) | 99 #if defined(OS_WIN) |
100 // Initialize this from the given Windows cursor. The caller must ensure that | 100 // Initialize this from the given Windows cursor. The caller must ensure that |
101 // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon | 101 // the HCURSOR remains valid by not invoking the DestroyCursor/DestroyIcon |
102 // APIs on it. | 102 // APIs on it. |
103 void InitFromExternalCursor(HCURSOR handle); | 103 void InitFromExternalCursor(HCURSOR handle); |
104 #endif | 104 #endif |
105 | 105 |
106 #if defined(USE_AURA) | 106 #if defined(USE_AURA) |
107 const ui::PlatformCursor GetPlatformCursor(); | 107 ui::PlatformCursor GetPlatformCursor(); |
108 | 108 |
109 // Updates |device_scale_factor_| and |rotation_| based on |display|. | 109 // Updates |device_scale_factor_| and |rotation_| based on |display|. |
110 void SetDisplayInfo(const gfx::Display& display); | 110 void SetDisplayInfo(const gfx::Display& display); |
111 | 111 |
112 #elif defined(OS_WIN) | 112 #elif defined(OS_WIN) |
113 // Returns a HCURSOR representing the current WebCursor instance. | 113 // Returns a HCURSOR representing the current WebCursor instance. |
114 // The ownership of the HCURSOR (does not apply to external cursors) remains | 114 // The ownership of the HCURSOR (does not apply to external cursors) remains |
115 // with the WebCursor instance. | 115 // with the WebCursor instance. |
116 HCURSOR GetCursor(HINSTANCE module_handle); | 116 HCURSOR GetCursor(HINSTANCE module_handle); |
117 | 117 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 #endif | 178 #endif |
179 | 179 |
180 #if defined(USE_OZONE) | 180 #if defined(USE_OZONE) |
181 gfx::Display::Rotation rotation_; | 181 gfx::Display::Rotation rotation_; |
182 #endif | 182 #endif |
183 }; | 183 }; |
184 | 184 |
185 } // namespace content | 185 } // namespace content |
186 | 186 |
187 #endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_ | 187 #endif // CONTENT_COMMON_CURSORS_WEBCURSOR_H_ |
OLD | NEW |