| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Called by RenderView to tell us about painting events, these two functions | 27 // Called by RenderView to tell us about painting events, these two functions |
| 28 // just correspond to the DidInitiatePaint and DidFlushPaint in R.V.. | 28 // just correspond to the DidInitiatePaint and DidFlushPaint in R.V.. |
| 29 void ViewInitiatedPaint(); | 29 void ViewInitiatedPaint(); |
| 30 void ViewFlushedPaint(); | 30 void ViewFlushedPaint(); |
| 31 | 31 |
| 32 // pepper::PluginDelegate implementation. | 32 // pepper::PluginDelegate implementation. |
| 33 virtual void InstanceCreated(pepper::PluginInstance* instance); | 33 virtual void InstanceCreated(pepper::PluginInstance* instance); |
| 34 virtual void InstanceDeleted(pepper::PluginInstance* instance); | 34 virtual void InstanceDeleted(pepper::PluginInstance* instance); |
| 35 virtual PlatformImage2D* CreateImage2D(int width, int height); | 35 virtual PlatformImage2D* CreateImage2D(int width, int height); |
| 36 virtual void DidChangeNumberOfFindResults(int identifier, |
| 37 int total, |
| 38 bool final_result); |
| 39 virtual void DidChangeSelectedFindResult(int identifier, int index); |
| 36 | 40 |
| 37 private: | 41 private: |
| 38 // Pointer to the RenderView that owns us. | 42 // Pointer to the RenderView that owns us. |
| 39 RenderView* render_view_; | 43 RenderView* render_view_; |
| 40 | 44 |
| 41 std::set<pepper::PluginInstance*> active_instances_; | 45 std::set<pepper::PluginInstance*> active_instances_; |
| 42 | 46 |
| 43 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 47 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
| 44 }; | 48 }; |
| 45 | 49 |
| 46 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 50 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |