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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl.h

Issue 11192052: Remove Carbon cursor call interposing in Mac NPAPI plugins (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « webkit/glue/webcursor_mac.mm ('k') | webkit/plugins/npapi/webplugin_delegate_impl_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) 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 WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void SetWindowHasFocus(bool has_focus); 173 void SetWindowHasFocus(bool has_focus);
174 // Informs the plugin that its tab or window has been hidden or shown. 174 // Informs the plugin that its tab or window has been hidden or shown.
175 void SetContainerVisibility(bool is_visible); 175 void SetContainerVisibility(bool is_visible);
176 // Informs the plugin that its containing window's frame has changed. 176 // Informs the plugin that its containing window's frame has changed.
177 // Frames are in screen coordinates. 177 // Frames are in screen coordinates.
178 void WindowFrameChanged(const gfx::Rect& window_frame, 178 void WindowFrameChanged(const gfx::Rect& window_frame,
179 const gfx::Rect& view_frame); 179 const gfx::Rect& view_frame);
180 // Informs the plugin that IME composition has completed. 180 // Informs the plugin that IME composition has completed.
181 // If |text| is empty, IME was cancelled. 181 // If |text| is empty, IME was cancelled.
182 void ImeCompositionCompleted(const string16& text); 182 void ImeCompositionCompleted(const string16& text);
183 #ifndef NP_NO_CARBON
184 // Informs the delegate that the plugin set a Carbon ThemeCursor.
185 void SetThemeCursor(ThemeCursor cursor);
186 // Informs the delegate that the plugin set a Carbon Cursor.
187 void SetCarbonCursor(const Cursor* cursor);
188 #endif
189 // Informs the delegate that the plugin set a Cocoa NSCursor. 183 // Informs the delegate that the plugin set a Cocoa NSCursor.
190 void SetNSCursor(NSCursor* cursor); 184 void SetNSCursor(NSCursor* cursor);
191 185
192 // Indicates that the windowless plugins will draw directly to the window 186 // Indicates that the windowless plugins will draw directly to the window
193 // context instead of a buffer context. 187 // context instead of a buffer context.
194 void SetNoBufferContext(); 188 void SetNoBufferContext();
195 189
196 // TODO(caryclark): This is a temporary workaround to allow the Darwin / Skia 190 // TODO(caryclark): This is a temporary workaround to allow the Darwin / Skia
197 // port to share code with the Darwin / CG port. Later, this will be removed 191 // port to share code with the Darwin / CG port. Later, this will be removed
198 // and all callers will use the Paint defined above. 192 // and all callers will use the Paint defined above.
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 // True if NPP_New did not return an error. 501 // True if NPP_New did not return an error.
508 bool creation_succeeded_; 502 bool creation_succeeded_;
509 503
510 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); 504 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl);
511 }; 505 };
512 506
513 } // namespace npapi 507 } // namespace npapi
514 } // namespace webkit 508 } // namespace webkit
515 509
516 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 510 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webcursor_mac.mm ('k') | webkit/plugins/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698