| 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 393 |
| 394 // Displays a modal input dialog with the given message as description | 394 // Displays a modal input dialog with the given message as description |
| 395 // and OK/Cancel choices. The input field is pre-filled with | 395 // and OK/Cancel choices. The input field is pre-filled with |
| 396 // defaultValue. Returns true if the user selects 'OK' or false | 396 // defaultValue. Returns true if the user selects 'OK' or false |
| 397 // otherwise. Upon returning true, actualValue contains the value of | 397 // otherwise. Upon returning true, actualValue contains the value of |
| 398 // the input field. | 398 // the input field. |
| 399 virtual bool runModalPromptDialog( | 399 virtual bool runModalPromptDialog( |
| 400 const WebString& message, const WebString& defaultValue, | 400 const WebString& message, const WebString& defaultValue, |
| 401 WebString* actualValue) { return false; } | 401 WebString* actualValue) { return false; } |
| 402 | 402 |
| 403 // Displays a modal confirmation dialog containing the given message as | 403 // Displays a modal confirmation dialog with OK/Cancel choices, where 'OK' |
| 404 // description and OK/Cancel choices, where 'OK' means that it is okay | 404 // means that it is okay to proceed with closing the view. Returns true if |
| 405 // to proceed with closing the view. Returns true if the user selects | 405 // the user selects 'OK' or false otherwise. |
| 406 // 'OK' or false otherwise. | 406 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } |
| 407 virtual bool runModalBeforeUnloadDialog( | |
| 408 bool isReload, const WebString& message) { return true; } | |
| 409 | 407 |
| 410 | 408 |
| 411 // UI ------------------------------------------------------------------ | 409 // UI ------------------------------------------------------------------ |
| 412 | 410 |
| 413 // Shows a context menu with commands relevant to a specific element on | 411 // Shows a context menu with commands relevant to a specific element on |
| 414 // the given frame. Additional context data is supplied. | 412 // the given frame. Additional context data is supplied. |
| 415 virtual void showContextMenu(const WebContextMenuData&) { } | 413 virtual void showContextMenu(const WebContextMenuData&) { } |
| 416 | 414 |
| 417 // Called when the data attached to the currently displayed context menu is | 415 // Called when the data attached to the currently displayed context menu is |
| 418 // invalidated. The context menu may be closed if possible. | 416 // invalidated. The context menu may be closed if possible. |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 // This method takes ownership of the callbacks pointer. | 702 // This method takes ownership of the callbacks pointer. |
| 705 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} | 703 virtual void checkIfAudioSinkExistsAndIsAuthorized(const WebString& sinkId,
const WebSecurityOrigin&, WebSetSinkIdCallbacks*) { BLINK_ASSERT_NOT_REACHED();
} |
| 706 | 704 |
| 707 protected: | 705 protected: |
| 708 virtual ~WebFrameClient() { } | 706 virtual ~WebFrameClient() { } |
| 709 }; | 707 }; |
| 710 | 708 |
| 711 } // namespace blink | 709 } // namespace blink |
| 712 | 710 |
| 713 #endif | 711 #endif |
| OLD | NEW |