| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class DictionaryValue; | 14 class DictionaryValue; |
| 15 } // namespace base | 15 } // namespace base |
| 16 | 16 |
| 17 namespace cc { |
| 18 struct SurfaceId; |
| 19 struct SurfaceSequence; |
| 20 } // namespace cc |
| 21 |
| 17 namespace gfx { | 22 namespace gfx { |
| 18 class Size; | 23 class Size; |
| 19 } // namespace gfx | 24 } // namespace gfx |
| 20 | 25 |
| 21 namespace content { | 26 namespace content { |
| 22 | 27 |
| 23 class GuestHost; | 28 class GuestHost; |
| 24 | 29 |
| 25 // Objects implement this interface to get notified about changes in the guest | 30 // Objects implement this interface to get notified about changes in the guest |
| 26 // WebContents and to provide necessary functionality. | 31 // WebContents and to provide necessary functionality. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 90 |
| 86 // Provides the delegate with an interface with which to communicate with the | 91 // Provides the delegate with an interface with which to communicate with the |
| 87 // content module. | 92 // content module. |
| 88 virtual void SetGuestHost(GuestHost* guest_host) {} | 93 virtual void SetGuestHost(GuestHost* guest_host) {} |
| 89 | 94 |
| 90 // Sets the position of the context menu for the guest contents. The value | 95 // Sets the position of the context menu for the guest contents. The value |
| 91 // reported from the guest renderer should be ignored. The reported value | 96 // reported from the guest renderer should be ignored. The reported value |
| 92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is | 97 // fromt he guest renderer is incorrect in situations where BrowserPlugin is |
| 93 // subject to CSS transforms. | 98 // subject to CSS transforms. |
| 94 virtual void SetContextMenuPosition(const gfx::Point& position) {} | 99 virtual void SetContextMenuPosition(const gfx::Point& position) {} |
| 100 |
| 101 virtual bool SetChildFrameSurface(const cc::SurfaceId& surface_id, |
| 102 const gfx::Size& frame_size, |
| 103 float scale_factor, |
| 104 const cc::SurfaceSequence& sequence); |
| 95 }; | 105 }; |
| 96 | 106 |
| 97 } // namespace content | 107 } // namespace content |
| 98 | 108 |
| 99 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 109 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
| OLD | NEW |