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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 // the user selects 'OK' or false otherwise. | 431 // the user selects 'OK' or false otherwise. |
432 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } | 432 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } |
433 | 433 |
434 | 434 |
435 // UI ------------------------------------------------------------------ | 435 // UI ------------------------------------------------------------------ |
436 | 436 |
437 // Shows a context menu with commands relevant to a specific element on | 437 // Shows a context menu with commands relevant to a specific element on |
438 // the given frame. Additional context data is supplied. | 438 // the given frame. Additional context data is supplied. |
439 virtual void showContextMenu(const WebContextMenuData&) { } | 439 virtual void showContextMenu(const WebContextMenuData&) { } |
440 | 440 |
| 441 // This method is called in response to WebView's saveImageAt(x, y). |
| 442 // A data url from <canvas> or <img> is passed to the method's argument. |
| 443 virtual void saveImageFromDataURL(const WebString&) { } |
| 444 |
441 // Low-level resource notifications ------------------------------------ | 445 // Low-level resource notifications ------------------------------------ |
442 | 446 |
443 // A request is about to be sent out, and the client may modify it. Request | 447 // A request is about to be sent out, and the client may modify it. Request |
444 // is writable, and changes to the URL, for example, will change the request | 448 // is writable, and changes to the URL, for example, will change the request |
445 // made. If this request is the result of a redirect, then redirectResponse | 449 // made. If this request is the result of a redirect, then redirectResponse |
446 // will be non-null and contain the response that triggered the redirect. | 450 // will be non-null and contain the response that triggered the redirect. |
447 virtual void willSendRequest( | 451 virtual void willSendRequest( |
448 WebLocalFrame*, unsigned identifier, WebURLRequest&, | 452 WebLocalFrame*, unsigned identifier, WebURLRequest&, |
449 const WebURLResponse& redirectResponse) { } | 453 const WebURLResponse& redirectResponse) { } |
450 | 454 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 // Mojo ---------------------------------------------------------------- | 722 // Mojo ---------------------------------------------------------------- |
719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 723 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
720 | 724 |
721 protected: | 725 protected: |
722 virtual ~WebFrameClient() { } | 726 virtual ~WebFrameClient() { } |
723 }; | 727 }; |
724 | 728 |
725 } // namespace blink | 729 } // namespace blink |
726 | 730 |
727 #endif | 731 #endif |
OLD | NEW |