| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Notifies whether the contents of the plugin are entirely opaque. | 104 // Notifies whether the contents of the plugin are entirely opaque. |
| 105 virtual void setOpaque(bool) = 0; | 105 virtual void setOpaque(bool) = 0; |
| 106 | 106 |
| 107 // Determines whether the given rectangle in this plugin is above all other | 107 // Determines whether the given rectangle in this plugin is above all other |
| 108 // content. The rectangle is in the plugin's coordinate system. | 108 // content. The rectangle is in the plugin's coordinate system. |
| 109 virtual bool isRectTopmost(const WebRect&) = 0; | 109 virtual bool isRectTopmost(const WebRect&) = 0; |
| 110 | 110 |
| 111 // Notifies when the plugin starts/stops accepting touch events. | 111 // Notifies when the plugin starts/stops accepting touch events. |
| 112 virtual void setIsAcceptingTouchEvents(bool) = 0; | 112 virtual void setIsAcceptingTouchEvents(bool) = 0; |
| 113 | 113 |
| 114 // Notifies when the plugin starts/stops accepting wheel events. Without |
| 115 // calling the function with true, the container might not always able to |
| 116 // receive wheel events in some cases (such as when threaded compositing |
| 117 // is in use but a scroll bar is not in use). |
| 118 virtual void setWantsWheelEvents(bool) = 0; |
| 119 |
| 114 virtual WebPlugin* plugin() = 0; | 120 virtual WebPlugin* plugin() = 0; |
| 115 virtual void setPlugin(WebPlugin*) = 0; | 121 virtual void setPlugin(WebPlugin*) = 0; |
| 116 | 122 |
| 117 virtual float deviceScaleFactor() = 0; | 123 virtual float deviceScaleFactor() = 0; |
| 118 virtual float pageScaleFactor() = 0; | 124 virtual float pageScaleFactor() = 0; |
| 119 virtual float pageZoomFactor() = 0; | 125 virtual float pageZoomFactor() = 0; |
| 120 | 126 |
| 121 protected: | 127 protected: |
| 122 ~WebPluginContainer() { } | 128 ~WebPluginContainer() { } |
| 123 }; | 129 }; |
| 124 | 130 |
| 125 } // namespace WebKit | 131 } // namespace WebKit |
| 126 | 132 |
| 127 #endif | 133 #endif |
| OLD | NEW |