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 CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <map> | 10 #include <map> |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 virtual std::string GetFlashCommandLineArgs() OVERRIDE; | 334 virtual std::string GetFlashCommandLineArgs() OVERRIDE; |
335 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) | 335 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) |
336 OVERRIDE; | 336 OVERRIDE; |
337 virtual ::ppapi::Preferences GetPreferences() OVERRIDE; | 337 virtual ::ppapi::Preferences GetPreferences() OVERRIDE; |
338 virtual void LockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; | 338 virtual void LockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; |
339 virtual void UnlockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; | 339 virtual void UnlockMouse(webkit::ppapi::PluginInstance* instance) OVERRIDE; |
340 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, | 340 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, |
341 const WebKit::WebCursorInfo& cursor) OVERRIDE; | 341 const WebKit::WebCursorInfo& cursor) OVERRIDE; |
342 virtual void DidReceiveMouseEvent( | 342 virtual void DidReceiveMouseEvent( |
343 webkit::ppapi::PluginInstance* instance) OVERRIDE; | 343 webkit::ppapi::PluginInstance* instance) OVERRIDE; |
| 344 virtual bool IsInFullscreenMode() OVERRIDE; |
344 | 345 |
345 CONTENT_EXPORT int GetRoutingId() const; | 346 CONTENT_EXPORT int GetRoutingId() const; |
346 | 347 |
347 private: | 348 private: |
348 void PublishInitialPolicy( | 349 void PublishInitialPolicy( |
349 scoped_refptr<webkit::ppapi::PluginInstance> instance, | 350 scoped_refptr<webkit::ppapi::PluginInstance> instance, |
350 const std::string& policy); | 351 const std::string& policy); |
351 | 352 |
352 // Asynchronously attempts to create a PPAPI broker for the given plugin. | 353 // Asynchronously attempts to create a PPAPI broker for the given plugin. |
353 scoped_refptr<PpapiBrokerImpl> CreatePpapiBroker( | 354 scoped_refptr<PpapiBrokerImpl> CreatePpapiBroker( |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 // The plugin instance that received the last mouse event. It is set to NULL | 407 // The plugin instance that received the last mouse event. It is set to NULL |
407 // if the last mouse event went to elements other than Pepper plugins. | 408 // if the last mouse event went to elements other than Pepper plugins. |
408 // |last_mouse_event_target_| is not owned by this class. We can know about | 409 // |last_mouse_event_target_| is not owned by this class. We can know about |
409 // when it is destroyed via InstanceDeleted(). | 410 // when it is destroyed via InstanceDeleted(). |
410 webkit::ppapi::PluginInstance* last_mouse_event_target_; | 411 webkit::ppapi::PluginInstance* last_mouse_event_target_; |
411 | 412 |
412 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 413 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
413 }; | 414 }; |
414 | 415 |
415 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 416 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |