| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 385 |
| 386 // Used to access the embedder for the InstalledApp API. | 386 // Used to access the embedder for the InstalledApp API. |
| 387 virtual WebInstalledAppClient* installedAppClient() { return nullptr; } | 387 virtual WebInstalledAppClient* installedAppClient() { return nullptr; } |
| 388 | 388 |
| 389 // Editing ------------------------------------------------------------- | 389 // Editing ------------------------------------------------------------- |
| 390 | 390 |
| 391 // These methods allow the client to intercept and overrule editing | 391 // These methods allow the client to intercept and overrule editing |
| 392 // operations. | 392 // operations. |
| 393 virtual void didChangeSelection(bool isSelectionEmpty) { } | 393 virtual void didChangeSelection(bool isSelectionEmpty) { } |
| 394 | 394 |
| 395 // This method is called in response to handleInputEvent() when the |
| 396 // default action for the current keyboard event is not suppressed by the |
| 397 // page, to give the embedder a chance to handle the keyboard event |
| 398 // specially. |
| 399 // |
| 400 // Returns true if the keyboard event was handled by the embedder, |
| 401 // indicating that the default action should be suppressed. |
| 402 virtual bool handleCurrentKeyboardEvent() { return false; } |
| 395 | 403 |
| 396 // Dialogs ------------------------------------------------------------- | 404 // Dialogs ------------------------------------------------------------- |
| 397 | 405 |
| 398 // This method opens the color chooser and returns a new WebColorChooser | 406 // This method opens the color chooser and returns a new WebColorChooser |
| 399 // instance. If there is a WebColorChooser already from the last time this | 407 // instance. If there is a WebColorChooser already from the last time this |
| 400 // was called, it ends the color chooser by calling endChooser, and replaces | 408 // was called, it ends the color chooser by calling endChooser, and replaces |
| 401 // it with the new one. The given list of suggestions can be used to show a | 409 // it with the new one. The given list of suggestions can be used to show a |
| 402 // simple interface with a limited set of choices. | 410 // simple interface with a limited set of choices. |
| 403 | 411 |
| 404 virtual WebColorChooser* createColorChooser( | 412 virtual WebColorChooser* createColorChooser( |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 return WebURL(); | 694 return WebURL(); |
| 687 } | 695 } |
| 688 | 696 |
| 689 protected: | 697 protected: |
| 690 virtual ~WebFrameClient() { } | 698 virtual ~WebFrameClient() { } |
| 691 }; | 699 }; |
| 692 | 700 |
| 693 } // namespace blink | 701 } // namespace blink |
| 694 | 702 |
| 695 #endif | 703 #endif |
| OLD | NEW |