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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 bool IsRectTopmost(const gfx::Rect& rect) override; | 376 bool IsRectTopmost(const gfx::Rect& rect) override; |
377 int32_t Navigate(const ppapi::URLRequestInfoData& request, | 377 int32_t Navigate(const ppapi::URLRequestInfoData& request, |
378 const char* target, | 378 const char* target, |
379 bool from_user_action) override; | 379 bool from_user_action) override; |
380 int MakePendingFileRefRendererHost(const base::FilePath& path) override; | 380 int MakePendingFileRefRendererHost(const base::FilePath& path) override; |
381 void SetEmbedProperty(PP_Var key, PP_Var value) override; | 381 void SetEmbedProperty(PP_Var key, PP_Var value) override; |
382 void SetSelectedText(const base::string16& selected_text) override; | 382 void SetSelectedText(const base::string16& selected_text) override; |
383 void SetLinkUnderCursor(const std::string& url) override; | 383 void SetLinkUnderCursor(const std::string& url) override; |
384 void SetTextInputType(ui::TextInputType type) override; | 384 void SetTextInputType(ui::TextInputType type) override; |
385 void PostMessageToJavaScript(PP_Var message) override; | 385 void PostMessageToJavaScript(PP_Var message) override; |
| 386 #if !defined(OS_ANDROID) && defined(V8_USE_EXTERNAL_STARTUP_DATA) |
| 387 const char* GetV8NativesData() const override; |
| 388 const char* GetV8SnapshotData() const override; |
| 389 int GetV8NativesSize() const override; |
| 390 int GetV8SnapshotSize() const override; |
| 391 #endif // !defined(OS_ANDROID) && defined(V8_USE_EXTERNAL_STARTUP_DATA) |
386 | 392 |
387 // PPB_Instance_API implementation. | 393 // PPB_Instance_API implementation. |
388 PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) override; | 394 PP_Bool BindGraphics(PP_Instance instance, PP_Resource device) override; |
389 PP_Bool IsFullFrame(PP_Instance instance) override; | 395 PP_Bool IsFullFrame(PP_Instance instance) override; |
390 const ppapi::ViewData* GetViewData(PP_Instance instance) override; | 396 const ppapi::ViewData* GetViewData(PP_Instance instance) override; |
391 PP_Bool FlashIsFullscreen(PP_Instance instance) override; | 397 PP_Bool FlashIsFullscreen(PP_Instance instance) override; |
392 PP_Var GetWindowObject(PP_Instance instance) override; | 398 PP_Var GetWindowObject(PP_Instance instance) override; |
393 PP_Var GetOwnerElementObject(PP_Instance instance) override; | 399 PP_Var GetOwnerElementObject(PP_Instance instance) override; |
394 PP_Var ExecuteScript(PP_Instance instance, | 400 PP_Var ExecuteScript(PP_Instance instance, |
395 PP_Var script, | 401 PP_Var script, |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
923 // view change events. | 929 // view change events. |
924 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 930 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
925 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 931 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
926 | 932 |
927 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 933 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
928 }; | 934 }; |
929 | 935 |
930 } // namespace content | 936 } // namespace content |
931 | 937 |
932 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 938 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
OLD | NEW |