| OLD | NEW |
| 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 void RequestSurroundingText(size_t desired_number_of_characters); | 248 void RequestSurroundingText(size_t desired_number_of_characters); |
| 249 bool StartFind(const base::string16& search_text, | 249 bool StartFind(const base::string16& search_text, |
| 250 bool case_sensitive, | 250 bool case_sensitive, |
| 251 int identifier); | 251 int identifier); |
| 252 void SelectFindResult(bool forward); | 252 void SelectFindResult(bool forward); |
| 253 void StopFind(); | 253 void StopFind(); |
| 254 | 254 |
| 255 bool SupportsPrintInterface(); | 255 bool SupportsPrintInterface(); |
| 256 bool IsPrintScalingDisabled(); | 256 bool IsPrintScalingDisabled(); |
| 257 int PrintBegin(const blink::WebPrintParams& print_params); | 257 int PrintBegin(const blink::WebPrintParams& print_params); |
| 258 bool PrintPage(int page_number, blink::WebCanvas* canvas); | 258 void PrintPage(int page_number, blink::WebCanvas* canvas); |
| 259 void PrintEnd(); | 259 void PrintEnd(); |
| 260 bool GetPrintPresetOptionsFromDocument( | 260 bool GetPrintPresetOptionsFromDocument( |
| 261 blink::WebPrintPresetOptions* preset_options); | 261 blink::WebPrintPresetOptions* preset_options); |
| 262 | 262 |
| 263 bool CanRotateView(); | 263 bool CanRotateView(); |
| 264 void RotateView(blink::WebPlugin::RotationType type); | 264 void RotateView(blink::WebPlugin::RotationType type); |
| 265 | 265 |
| 266 // There are 2 implementations of the fullscreen interface | 266 // There are 2 implementations of the fullscreen interface |
| 267 // PPB_FlashFullscreen is used by Pepper Flash. | 267 // PPB_FlashFullscreen is used by Pepper Flash. |
| 268 // PPB_Fullscreen is intended for other applications including NaCl. | 268 // PPB_Fullscreen is intended for other applications including NaCl. |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 // we have a bound Graphics2D and are using software compositing | 637 // we have a bound Graphics2D and are using software compositing |
| 638 // - we are not in Flash full-screen mode (or transitioning to it) | 638 // - we are not in Flash full-screen mode (or transitioning to it) |
| 639 // Otherwise it destroys the layer. | 639 // Otherwise it destroys the layer. |
| 640 // It does either operation lazily. | 640 // It does either operation lazily. |
| 641 // device_changed: true if the bound device has been changed, and | 641 // device_changed: true if the bound device has been changed, and |
| 642 // UpdateLayer() will be forced to recreate the layer and attaches to the | 642 // UpdateLayer() will be forced to recreate the layer and attaches to the |
| 643 // container. | 643 // container. |
| 644 void UpdateLayer(bool device_changed); | 644 void UpdateLayer(bool device_changed); |
| 645 | 645 |
| 646 // Internal helper function for PrintPage(). | 646 // Internal helper function for PrintPage(). |
| 647 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, | 647 void PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, |
| 648 int num_ranges, | 648 int num_ranges, |
| 649 blink::WebCanvas* canvas); | 649 blink::WebCanvas* canvas); |
| 650 | 650 |
| 651 void DoSetCursor(blink::WebCursorInfo* cursor); | 651 void DoSetCursor(blink::WebCursorInfo* cursor); |
| 652 | 652 |
| 653 // Internal helper functions for HandleCompositionXXX(). | 653 // Internal helper functions for HandleCompositionXXX(). |
| 654 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, | 654 bool SendCompositionEventToPlugin(PP_InputEvent_Type type, |
| 655 const base::string16& text); | 655 const base::string16& text); |
| 656 bool SendCompositionEventWithUnderlineInformationToPlugin( | 656 bool SendCompositionEventWithUnderlineInformationToPlugin( |
| 657 PP_InputEvent_Type type, | 657 PP_InputEvent_Type type, |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 // view change events. | 927 // view change events. |
| 928 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 928 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 929 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 929 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 930 | 930 |
| 931 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 931 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 932 }; | 932 }; |
| 933 | 933 |
| 934 } // namespace content | 934 } // namespace content |
| 935 | 935 |
| 936 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 936 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |