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

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

Issue 554003: (Mac) Intercept (Cocoa) cursor setting by plugins and forward it on properly.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | « webkit/glue/plugins/webplugin_delegate_impl_mac.mm ('k') | webkit/glue/webcursor_mac.mm » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "base/gfx/point.h" 9 #include "base/gfx/point.h"
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Return a new GdkCursor* for this cursor. Only valid if GetCursorType 85 // Return a new GdkCursor* for this cursor. Only valid if GetCursorType
86 // returns GDK_CURSOR_IS_PIXMAP. 86 // returns GDK_CURSOR_IS_PIXMAP.
87 GdkCursor* GetCustomCursor() const; 87 GdkCursor* GetCustomCursor() const;
88 #elif defined(OS_MACOSX) 88 #elif defined(OS_MACOSX)
89 // Gets an NSCursor* for this cursor. 89 // Gets an NSCursor* for this cursor.
90 NSCursor* GetCursor() const; 90 NSCursor* GetCursor() const;
91 91
92 // Initialize this from the given Carbon ThemeCursor. 92 // Initialize this from the given Carbon ThemeCursor.
93 void InitFromThemeCursor(ThemeCursor cursor); 93 void InitFromThemeCursor(ThemeCursor cursor);
94
95 // Initialize this from the given Cocoa NSCursor.
96 void InitFromNSCursor(NSCursor* cursor);
94 #endif 97 #endif
95 98
96 private: 99 private:
97 // Copies the contents of the WebCursor instance passed in. 100 // Copies the contents of the WebCursor instance passed in.
98 void Copy(const WebCursor& other); 101 void Copy(const WebCursor& other);
99 102
100 // Cleans up the WebCursor instance. 103 // Cleans up the WebCursor instance.
101 void Clear(); 104 void Clear();
102 105
103 // Platform specific initialization goes here. 106 // Platform specific initialization goes here.
(...skipping 29 matching lines...) Expand all
133 #if defined(OS_WIN) 136 #if defined(OS_WIN)
134 // An externally generated HCURSOR. We assume that it remains valid, i.e we 137 // An externally generated HCURSOR. We assume that it remains valid, i.e we
135 // don't attempt to copy the HCURSOR. 138 // don't attempt to copy the HCURSOR.
136 HCURSOR external_cursor_; 139 HCURSOR external_cursor_;
137 // A custom cursor created from custom bitmap data by Webkit. 140 // A custom cursor created from custom bitmap data by Webkit.
138 HCURSOR custom_cursor_; 141 HCURSOR custom_cursor_;
139 #endif // OS_WIN 142 #endif // OS_WIN
140 }; 143 };
141 144
142 #endif // WEBKIT_GLUE_WEBCURSOR_H_ 145 #endif // WEBKIT_GLUE_WEBCURSOR_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/webplugin_delegate_impl_mac.mm ('k') | webkit/glue/webcursor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698