OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 390 |
391 | 391 |
392 // Scrollbar ---------------------------------------------------------- | 392 // Scrollbar ---------------------------------------------------------- |
393 | 393 |
394 // Must return non-null. | 394 // Must return non-null. |
395 virtual WebScrollbarBehavior* scrollbarBehavior() { return 0; } | 395 virtual WebScrollbarBehavior* scrollbarBehavior() { return 0; } |
396 | 396 |
397 | 397 |
398 // Sudden Termination -------------------------------------------------- | 398 // Sudden Termination -------------------------------------------------- |
399 | 399 |
400 // Disable/Enable sudden termination. | 400 // Disable/Enable sudden termination on a process level. When possible, it |
| 401 // is preferable to disable sudden termination on a per-frame level via |
| 402 // WebFrameClient::suddenTerminationDisablerChanged. |
401 virtual void suddenTerminationChanged(bool enabled) { } | 403 virtual void suddenTerminationChanged(bool enabled) { } |
402 | 404 |
403 | 405 |
404 // System -------------------------------------------------------------- | 406 // System -------------------------------------------------------------- |
405 | 407 |
406 // Returns a value such as "en-US". | 408 // Returns a value such as "en-US". |
407 virtual WebString defaultLocale() { return WebString(); } | 409 virtual WebString defaultLocale() { return WebString(); } |
408 | 410 |
409 // Wall clock time in seconds since the epoch. | 411 // Wall clock time in seconds since the epoch. |
410 virtual double currentTime() { return 0; } | 412 virtual double currentTime() { return 0; } |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 652 |
651 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0;
} | 653 virtual WebNavigatorConnectProvider* navigatorConnectProvider() { return 0;
} |
652 | 654 |
653 protected: | 655 protected: |
654 virtual ~Platform() { } | 656 virtual ~Platform() { } |
655 }; | 657 }; |
656 | 658 |
657 } // namespace blink | 659 } // namespace blink |
658 | 660 |
659 #endif | 661 #endif |
OLD | NEW |