Always set *error when CreateDirectoryAndGetError fails.
[chromium-blink-merge.git] / webkit / renderer / cursor_utils.h
blob3e261cb67f3d0dce4d71db79395a17b607d82a13
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_RENDERER_CURSOR_UTILS_H_
6 #define WEBKIT_RENDERER_CURSOR_UTILS_H_
8 #include "webkit/common/cursors/webcursor.h"
9 #include "webkit/renderer/webkit_renderer_export.h"
11 namespace WebKit {
12 struct WebCursorInfo;
15 namespace webkit_glue {
17 // Adapts our cursor info to WebKit::WebCursorInfo.
18 WEBKIT_RENDERER_EXPORT bool GetWebKitCursorInfo(
19 const WebCursor& cursor,
20 WebKit::WebCursorInfo* webkit_cursor_info);
22 // Adapts WebKit::CursorInfo to our cursor.
23 WEBKIT_RENDERER_EXPORT void InitializeCursorFromWebKitCursorInfo(
24 WebCursor* cursor,
25 const WebKit::WebCursorInfo& webkit_cursor_info);
27 } // namespace webkit_glue
29 #endif // WEBKIT_RENDERER_CURSOR_UTILS_H_