Chromium Code Reviews| 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 231 virtual void stopFind() {} | 231 virtual void stopFind() {} |
| 232 | 232 |
| 233 // View rotation types. | 233 // View rotation types. |
| 234 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise }; | 234 enum RotationType { RotationType90Clockwise, RotationType90Counterclockwise }; |
| 235 // Whether the plugin can rotate the view of its content. | 235 // Whether the plugin can rotate the view of its content. |
| 236 virtual bool canRotateView() { return false; } | 236 virtual bool canRotateView() { return false; } |
| 237 // Rotates the plugin's view of its content. | 237 // Rotates the plugin's view of its content. |
| 238 virtual void rotateView(RotationType type) {} | 238 virtual void rotateView(RotationType type) {} |
| 239 | 239 |
| 240 virtual bool isPlaceholder() { return true; } | 240 virtual bool isPlaceholder() { return true; } |
| 241 // Check whether a plugin load lead to the instantiation of a | |
| 242 // PluginPlaceholderBase derived plugin, which is not allowed | |
|
Bernhard Bauer
2017/03/31 09:25:20
This is a layering violation, as Blink shouldn't k
George Joseph
2017/04/03 00:22:34
Done.
| |
| 243 // to load later on. isPlaceholder() is used by the pepper | |
|
Bernhard Bauer
2017/03/31 09:25:20
This sentence should be a comment on isPlaceholder
| |
| 244 // webplugin implementation to check if a WebHelperPlugin | |
| 245 // did create a PlaceHolder Plugin. | |
|
Bernhard Bauer
2017/03/31 09:25:20
Nit: capitalized weirdly (placeholder should be a
George Joseph
2017/04/03 00:22:34
Done.
| |
| 246 virtual bool isErrorPlaceholder() { return false; }; | |
|
Bernhard Bauer
2017/03/31 09:25:21
Nit: No semicolon after the closing brace.
George Joseph
2017/04/03 00:22:34
Done.
| |
| 241 | 247 |
| 242 protected: | 248 protected: |
| 243 ~WebPlugin() {} | 249 ~WebPlugin() {} |
| 244 }; | 250 }; |
| 245 | 251 |
| 246 } // namespace blink | 252 } // namespace blink |
| 247 | 253 |
| 248 #endif | 254 #endif |
| OLD | NEW |