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" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Provides the delegate with an interface with which to communicate with the | 86 // Provides the delegate with an interface with which to communicate with the |
87 // content module. | 87 // content module. |
88 virtual void SetGuestHost(GuestHost* guest_host) {} | 88 virtual void SetGuestHost(GuestHost* guest_host) {} |
89 | 89 |
90 // Sets the position of the context menu for the guest contents. The value | 90 // 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 | 91 // reported from the guest renderer should be ignored. The reported value |
92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is | 92 // fromt he guest renderer is incorrect in situations where BrowserPlugin is |
93 // subject to CSS transforms. | 93 // subject to CSS transforms. |
94 virtual void SetContextMenuPosition(const gfx::Point& position) {} | 94 virtual void SetContextMenuPosition(const gfx::Point& position) {} |
| 95 |
| 96 // TODO(ekaramad): A short workaround for MimeHandlerView to always use a |
| 97 // BrowserPlugin even when guests are based on OOPIF. This is should be |
| 98 // removed after MimeHandlerView is implemented based on OOPIF. |
| 99 // (https://crbug.com/563285). |
| 100 virtual bool IsMimeHandlerViewGuest(); |
95 }; | 101 }; |
96 | 102 |
97 } // namespace content | 103 } // namespace content |
98 | 104 |
99 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ | 105 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ |
OLD | NEW |