| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // | 75 // |
| 76 // Returns true if the keyboard event was handled by the embedder, | 76 // Returns true if the keyboard event was handled by the embedder, |
| 77 // indicating that the default action should be suppressed. | 77 // indicating that the default action should be suppressed. |
| 78 virtual bool handleCurrentKeyboardEvent() { return false; } | 78 virtual bool handleCurrentKeyboardEvent() { return false; } |
| 79 | 79 |
| 80 // UI ------------------------------------------------------------------ | 80 // UI ------------------------------------------------------------------ |
| 81 | 81 |
| 82 // Called when script modifies window.status | 82 // Called when script modifies window.status |
| 83 virtual void setStatusText(const WebString&) { } | 83 virtual void setStatusText(const WebString&) { } |
| 84 | 84 |
| 85 // Called when hovering over an anchor with the given URL. | |
| 86 virtual void setMouseOverURL(const WebURL&) { } | |
| 87 | |
| 88 // Called when keyboard focus switches to an anchor with the given URL. | 85 // Called when keyboard focus switches to an anchor with the given URL. |
| 89 virtual void setKeyboardFocusURL(const WebURL&) { } | 86 virtual void setKeyboardFocusURL(const WebURL&) { } |
| 90 | 87 |
| 91 // Called to determine if drag-n-drop operations may initiate a page | 88 // Called to determine if drag-n-drop operations may initiate a page |
| 92 // navigation. | 89 // navigation. |
| 93 virtual bool acceptsLoadDrops() { return true; } | 90 virtual bool acceptsLoadDrops() { return true; } |
| 94 | 91 |
| 95 // Take focus away from the WebView by focusing an adjacent UI element | 92 // Take focus away from the WebView by focusing an adjacent UI element |
| 96 // in the containing window. | 93 // in the containing window. |
| 97 virtual void focusNext() { } | 94 virtual void focusNext() { } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 return WebPageVisibilityStateVisible; | 141 return WebPageVisibilityStateVisible; |
| 145 } | 142 } |
| 146 | 143 |
| 147 protected: | 144 protected: |
| 148 ~WebViewClient() { } | 145 ~WebViewClient() { } |
| 149 }; | 146 }; |
| 150 | 147 |
| 151 } // namespace blink | 148 } // namespace blink |
| 152 | 149 |
| 153 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ | 150 #endif // SKY_ENGINE_PUBLIC_WEB_WEBVIEWCLIENT_H_ |
| OLD | NEW |