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

Side by Side Diff: webkit/glue/webcursor.h

Issue 7273056: [Mac] Create transparent cursor when given empty custom data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Handle empty size. Revert breakpad logging. Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 WEBKIT_GLUE_WEBCURSOR_H_ 5 #ifndef WEBKIT_GLUE_WEBCURSOR_H_
6 #define WEBKIT_GLUE_WEBCURSOR_H_ 6 #define WEBKIT_GLUE_WEBCURSOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/point.h" 10 #include "ui/gfx/point.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 NSCursor* GetCursor() const; 95 NSCursor* GetCursor() const;
96 96
97 // Initialize this from the given Carbon ThemeCursor. 97 // Initialize this from the given Carbon ThemeCursor.
98 void InitFromThemeCursor(ThemeCursor cursor); 98 void InitFromThemeCursor(ThemeCursor cursor);
99 99
100 // Initialize this from the given Carbon Cursor. 100 // Initialize this from the given Carbon Cursor.
101 void InitFromCursor(const Cursor* cursor); 101 void InitFromCursor(const Cursor* cursor);
102 102
103 // Initialize this from the given Cocoa NSCursor. 103 // Initialize this from the given Cocoa NSCursor.
104 void InitFromNSCursor(NSCursor* cursor); 104 void InitFromNSCursor(NSCursor* cursor);
105
106 // TODO(shess): Temporary accessor for debugging http://crbug.com/73356 .
107 const gfx::Size& custom_size() const { return custom_size_; }
108 #endif 105 #endif
109 106
110 private: 107 private:
111 // Copies the contents of the WebCursor instance passed in. 108 // Copies the contents of the WebCursor instance passed in.
112 void Copy(const WebCursor& other); 109 void Copy(const WebCursor& other);
113 110
114 // Cleans up the WebCursor instance. 111 // Cleans up the WebCursor instance.
115 void Clear(); 112 void Clear();
116 113
117 // Platform specific initialization goes here. 114 // Platform specific initialization goes here.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 HCURSOR custom_cursor_; 152 HCURSOR custom_cursor_;
156 #endif // OS_WIN 153 #endif // OS_WIN
157 154
158 #if defined(USE_X11) 155 #if defined(USE_X11)
159 // A custom cursor created that should be unref'ed from the destructor. 156 // A custom cursor created that should be unref'ed from the destructor.
160 GdkCursor* unref_; 157 GdkCursor* unref_;
161 #endif 158 #endif
162 }; 159 };
163 160
164 #endif // WEBKIT_GLUE_WEBCURSOR_H_ 161 #endif // WEBKIT_GLUE_WEBCURSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.mm ('k') | webkit/glue/webcursor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698