| OLD | NEW |
| 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_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "ui/gfx/rect.h" | 33 #include "ui/gfx/rect.h" |
| 34 #include "webkit/plugins/ppapi/plugin_delegate.h" | 34 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 35 | 35 |
| 36 struct PP_Var; | 36 struct PP_Var; |
| 37 struct PPP_Find_Dev; | 37 struct PPP_Find_Dev; |
| 38 struct PPP_InputEvent; | 38 struct PPP_InputEvent; |
| 39 struct PPP_Instance_Private; | 39 struct PPP_Instance_Private; |
| 40 struct PPP_Messaging; | 40 struct PPP_Messaging; |
| 41 struct PPP_Pdf; | 41 struct PPP_Pdf; |
| 42 struct PPP_PolicyUpdate_Dev; | 42 struct PPP_PolicyUpdate_Dev; |
| 43 struct PPP_Resize_Dev; |
| 43 struct PPP_Selection_Dev; | 44 struct PPP_Selection_Dev; |
| 44 struct PPP_Zoom_Dev; | 45 struct PPP_Zoom_Dev; |
| 45 | 46 |
| 46 class SkBitmap; | 47 class SkBitmap; |
| 47 class TransportDIB; | 48 class TransportDIB; |
| 48 | 49 |
| 49 namespace gfx { | 50 namespace gfx { |
| 50 class Rect; | 51 class Rect; |
| 51 } | 52 } |
| 52 | 53 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 void RemovePluginObject(PluginObject* plugin_object); | 193 void RemovePluginObject(PluginObject* plugin_object); |
| 193 | 194 |
| 194 string16 GetSelectedText(bool html); | 195 string16 GetSelectedText(bool html); |
| 195 string16 GetLinkAtPosition(const gfx::Point& point); | 196 string16 GetLinkAtPosition(const gfx::Point& point); |
| 196 void Zoom(double factor, bool text_only); | 197 void Zoom(double factor, bool text_only); |
| 197 bool StartFind(const string16& search_text, | 198 bool StartFind(const string16& search_text, |
| 198 bool case_sensitive, | 199 bool case_sensitive, |
| 199 int identifier); | 200 int identifier); |
| 200 void SelectFindResult(bool forward); | 201 void SelectFindResult(bool forward); |
| 201 void StopFind(); | 202 void StopFind(); |
| 203 void WillStartLiveResize(); |
| 204 void WillEndLiveResize(); |
| 202 | 205 |
| 203 bool SupportsPrintInterface(); | 206 bool SupportsPrintInterface(); |
| 204 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); | 207 int PrintBegin(const gfx::Rect& printable_area, int printer_dpi); |
| 205 bool PrintPage(int page_number, WebKit::WebCanvas* canvas); | 208 bool PrintPage(int page_number, WebKit::WebCanvas* canvas); |
| 206 void PrintEnd(); | 209 void PrintEnd(); |
| 207 | 210 |
| 208 void Graphics3DContextLost(); | 211 void Graphics3DContextLost(); |
| 209 | 212 |
| 210 // Implementation of PPB_Fullscreen_Dev. | 213 // Implementation of PPB_Fullscreen_Dev. |
| 211 | 214 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 PluginModule* module, | 288 PluginModule* module, |
| 286 ::ppapi::PPP_Instance_Combined* instance_interface); | 289 ::ppapi::PPP_Instance_Combined* instance_interface); |
| 287 | 290 |
| 288 bool LoadFindInterface(); | 291 bool LoadFindInterface(); |
| 289 bool LoadInputEventInterface(); | 292 bool LoadInputEventInterface(); |
| 290 bool LoadMessagingInterface(); | 293 bool LoadMessagingInterface(); |
| 291 bool LoadPdfInterface(); | 294 bool LoadPdfInterface(); |
| 292 bool LoadPolicyUpdateInterface(); | 295 bool LoadPolicyUpdateInterface(); |
| 293 bool LoadPrintInterface(); | 296 bool LoadPrintInterface(); |
| 294 bool LoadPrivateInterface(); | 297 bool LoadPrivateInterface(); |
| 298 bool LoadResizeInterface(); |
| 295 bool LoadSelectionInterface(); | 299 bool LoadSelectionInterface(); |
| 296 bool LoadZoomInterface(); | 300 bool LoadZoomInterface(); |
| 297 | 301 |
| 298 // Determines if we think the plugin has focus, both content area and webkit | 302 // Determines if we think the plugin has focus, both content area and webkit |
| 299 // (see has_webkit_focus_ below). | 303 // (see has_webkit_focus_ below). |
| 300 bool PluginHasFocus() const; | 304 bool PluginHasFocus() const; |
| 301 | 305 |
| 302 // Reports the current plugin geometry to the plugin by calling | 306 // Reports the current plugin geometry to the plugin by calling |
| 303 // DidChangeView. | 307 // DidChangeView. |
| 304 void ReportGeometry(); | 308 void ReportGeometry(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // The id of the current find operation, or -1 if none is in process. | 386 // The id of the current find operation, or -1 if none is in process. |
| 383 int find_identifier_; | 387 int find_identifier_; |
| 384 | 388 |
| 385 // The plugin-provided interfaces. | 389 // The plugin-provided interfaces. |
| 386 const PPP_Find_Dev* plugin_find_interface_; | 390 const PPP_Find_Dev* plugin_find_interface_; |
| 387 const PPP_Messaging* plugin_messaging_interface_; | 391 const PPP_Messaging* plugin_messaging_interface_; |
| 388 const PPP_InputEvent* plugin_input_event_interface_; | 392 const PPP_InputEvent* plugin_input_event_interface_; |
| 389 const PPP_Instance_Private* plugin_private_interface_; | 393 const PPP_Instance_Private* plugin_private_interface_; |
| 390 const PPP_Pdf* plugin_pdf_interface_; | 394 const PPP_Pdf* plugin_pdf_interface_; |
| 391 const PPP_PolicyUpdate_Dev* plugin_policy_updated_interface_; | 395 const PPP_PolicyUpdate_Dev* plugin_policy_updated_interface_; |
| 396 const PPP_Resize_Dev* plugin_resize_interface_; |
| 392 const PPP_Selection_Dev* plugin_selection_interface_; | 397 const PPP_Selection_Dev* plugin_selection_interface_; |
| 393 const PPP_Zoom_Dev* plugin_zoom_interface_; | 398 const PPP_Zoom_Dev* plugin_zoom_interface_; |
| 394 | 399 |
| 395 // Flags indicating whether we have asked this plugin instance for the | 400 // Flags indicating whether we have asked this plugin instance for the |
| 396 // corresponding interfaces, so that we can ask only once. | 401 // corresponding interfaces, so that we can ask only once. |
| 397 bool checked_for_plugin_input_event_interface_; | 402 bool checked_for_plugin_input_event_interface_; |
| 398 bool checked_for_plugin_messaging_interface_; | 403 bool checked_for_plugin_messaging_interface_; |
| 399 | 404 |
| 400 // This is only valid between a successful PrintBegin call and a PrintEnd | 405 // This is only valid between a successful PrintBegin call and a PrintEnd |
| 401 // call. | 406 // call. |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 uint32_t input_event_mask_; | 493 uint32_t input_event_mask_; |
| 489 uint32_t filtered_input_event_mask_; | 494 uint32_t filtered_input_event_mask_; |
| 490 | 495 |
| 491 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 496 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 492 }; | 497 }; |
| 493 | 498 |
| 494 } // namespace ppapi | 499 } // namespace ppapi |
| 495 } // namespace webkit | 500 } // namespace webkit |
| 496 | 501 |
| 497 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 502 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |