| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 // Tells the plugin that the user has stopped the find operation. | 220 // Tells the plugin that the user has stopped the find operation. |
| 221 virtual void stopFind() {} | 221 virtual void stopFind() {} |
| 222 | 222 |
| 223 // View rotation types. | 223 // View rotation types. |
| 224 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise }; | 224 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise }; |
| 225 // Whether the plugin can rotate the view of its content. | 225 // Whether the plugin can rotate the view of its content. |
| 226 virtual bool canRotateView() { return false; } | 226 virtual bool canRotateView() { return false; } |
| 227 // Rotates the plugin's view of its content. | 227 // Rotates the plugin's view of its content. |
| 228 virtual void rotateView(RotationType type) {} | 228 virtual void rotateView(RotationType type) {} |
| 229 | 229 |
| 230 virtual bool isPlaceholder() { return true; } | 230 virtual bool isPlaceholder() { return placeholder; } |
| 231 virtual void markAsPlaceholder() { placeholder = true; } |
| 231 | 232 |
| 232 protected: | 233 protected: |
| 233 ~WebPlugin() {} | 234 ~WebPlugin() {} |
| 235 bool placeholder = false; |
| 234 }; | 236 }; |
| 235 | 237 |
| 236 } // namespace blink | 238 } // namespace blink |
| 237 | 239 |
| 238 #endif | 240 #endif |
| OLD | NEW |