| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 // the user selects 'OK' or false otherwise. | 437 // the user selects 'OK' or false otherwise. |
| 438 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } | 438 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } |
| 439 | 439 |
| 440 | 440 |
| 441 // UI ------------------------------------------------------------------ | 441 // UI ------------------------------------------------------------------ |
| 442 | 442 |
| 443 // Shows a context menu with commands relevant to a specific element on | 443 // Shows a context menu with commands relevant to a specific element on |
| 444 // the given frame. Additional context data is supplied. | 444 // the given frame. Additional context data is supplied. |
| 445 virtual void showContextMenu(const WebContextMenuData&) { } | 445 virtual void showContextMenu(const WebContextMenuData&) { } |
| 446 | 446 |
| 447 // This method is called in response to WebView's saveImageAt(x, y). |
| 448 // A data url from <canvas> or <img> is passed to the method's argument. |
| 449 virtual void saveImageFromDataURL(const WebString&) { } |
| 450 |
| 447 // Low-level resource notifications ------------------------------------ | 451 // Low-level resource notifications ------------------------------------ |
| 448 | 452 |
| 449 // A request is about to be sent out, and the client may modify it. Request | 453 // A request is about to be sent out, and the client may modify it. Request |
| 450 // is writable, and changes to the URL, for example, will change the request | 454 // is writable, and changes to the URL, for example, will change the request |
| 451 // made. If this request is the result of a redirect, then redirectResponse | 455 // made. If this request is the result of a redirect, then redirectResponse |
| 452 // will be non-null and contain the response that triggered the redirect. | 456 // will be non-null and contain the response that triggered the redirect. |
| 453 virtual void willSendRequest( | 457 virtual void willSendRequest( |
| 454 WebLocalFrame*, unsigned identifier, WebURLRequest&, | 458 WebLocalFrame*, unsigned identifier, WebURLRequest&, |
| 455 const WebURLResponse& redirectResponse) { } | 459 const WebURLResponse& redirectResponse) { } |
| 456 | 460 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 // Mojo ---------------------------------------------------------------- | 708 // Mojo ---------------------------------------------------------------- |
| 705 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 709 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
| 706 | 710 |
| 707 protected: | 711 protected: |
| 708 virtual ~WebFrameClient() { } | 712 virtual ~WebFrameClient() { } |
| 709 }; | 713 }; |
| 710 | 714 |
| 711 } // namespace blink | 715 } // namespace blink |
| 712 | 716 |
| 713 #endif | 717 #endif |
| OLD | NEW |