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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 229 virtual void selectFindResult(bool forward, int identifier) {} | 229 virtual void selectFindResult(bool forward, int identifier) {} |
| 230 // Tells the plugin that the user has stopped the find operation. | 230 // Tells the plugin that the user has stopped the find operation. |
| 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 // Check whether a plugin can be interacted with.A positive return value |
|
Bernhard Bauer
2017/04/03 10:14:20
Nit: Space after period.
George Joseph
2017/04/04 23:37:41
Done.
| |
| 240 // means the plugin has not loaded and hence cannot be interacted with. | |
| 241 // The plugin could ,however, load successfully later. | |
|
Bernhard Bauer
2017/04/03 10:14:20
Nit: swap comma and space (the first instance plz
George Joseph
2017/04/04 23:37:41
Done.
| |
| 240 virtual bool isPlaceholder() { return true; } | 242 virtual bool isPlaceholder() { return true; } |
| 243 // Check whether a plugin failed to load, with there being no possibility of | |
|
Bernhard Bauer
2017/04/03 10:14:20
Nit: collapse two spaces between "being" and "no"
George Joseph
2017/04/04 23:37:41
Done.
| |
| 244 // it loading later. | |
| 245 virtual bool isErrorplaceholder() { return false; } | |
|
Bernhard Bauer
2017/04/03 10:14:20
Nit: isErrorPlaceholder (the CamelCase version of
George Joseph
2017/04/04 23:37:41
Done.
| |
| 241 | 246 |
| 242 protected: | 247 protected: |
| 243 ~WebPlugin() {} | 248 ~WebPlugin() {} |
| 244 }; | 249 }; |
| 245 | 250 |
| 246 } // namespace blink | 251 } // namespace blink |
| 247 | 252 |
| 248 #endif | 253 #endif |
| OLD | NEW |