| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 | 232 |
| 233 // View rotation types. | 233 // View rotation types. |
| 234 enum RotationType { | 234 enum RotationType { |
| 235 kRotationType90Clockwise, | 235 kRotationType90Clockwise, |
| 236 kRotationType90Counterclockwise | 236 kRotationType90Counterclockwise |
| 237 }; | 237 }; |
| 238 // Whether the plugin can rotate the view of its content. | 238 // Whether the plugin can rotate the view of its content. |
| 239 virtual bool CanRotateView() { return false; } | 239 virtual bool CanRotateView() { return false; } |
| 240 // Rotates the plugin's view of its content. | 240 // Rotates the plugin's view of its content. |
| 241 virtual void RotateView(RotationType type) {} | 241 virtual void RotateView(RotationType type) {} |
| 242 | 242 // Check whether a plugin can be interacted with. A positive return value |
| 243 // means the plugin has not loaded and hence cannot be interacted with. |
| 244 // The plugin could, however, load successfully later. |
| 243 virtual bool IsPlaceholder() { return true; } | 245 virtual bool IsPlaceholder() { return true; } |
| 246 // Check whether a plugin failed to load, with there being no possibility of |
| 247 // it loading later. |
| 248 virtual bool IsErrorPlaceholder() { return false; } |
| 244 | 249 |
| 245 protected: | 250 protected: |
| 246 ~WebPlugin() {} | 251 ~WebPlugin() {} |
| 247 }; | 252 }; |
| 248 | 253 |
| 249 } // namespace blink | 254 } // namespace blink |
| 250 | 255 |
| 251 #endif | 256 #endif |
| OLD | NEW |