| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 185 |
| 186 // Returns comma separated list of accept languages. | 186 // Returns comma separated list of accept languages. |
| 187 virtual WebString acceptLanguages() { return WebString(); } | 187 virtual WebString acceptLanguages() { return WebString(); } |
| 188 | 188 |
| 189 // Called when the View has changed size as a result of an auto-resize. | 189 // Called when the View has changed size as a result of an auto-resize. |
| 190 virtual void didAutoResize(const WebSize& newSize) {} | 190 virtual void didAutoResize(const WebSize& newSize) {} |
| 191 | 191 |
| 192 // Called when the View acquires focus. | 192 // Called when the View acquires focus. |
| 193 virtual void didFocus() {} | 193 virtual void didFocus() {} |
| 194 | 194 |
| 195 // TODO(lfg): The callback below is exposed in RenderViewObserver and only | |
| 196 // used to implement autofill. We should figure out a better way to plumb | |
| 197 // this. | |
| 198 // Called immediately after a mousedown event is dispatched due to a mouse | |
| 199 // press or gesture tap. | |
| 200 // Note: This is called even when the mouse down event is prevent default. | |
| 201 virtual void onMouseDown(const WebNode& mouseDownNode) {} | |
| 202 | |
| 203 // Session history ----------------------------------------------------- | 195 // Session history ----------------------------------------------------- |
| 204 | 196 |
| 205 // Tells the embedder to navigate back or forward in session history by | 197 // Tells the embedder to navigate back or forward in session history by |
| 206 // the given offset (relative to the current position in session | 198 // the given offset (relative to the current position in session |
| 207 // history). | 199 // history). |
| 208 virtual void navigateBackForwardSoon(int offset) {} | 200 virtual void navigateBackForwardSoon(int offset) {} |
| 209 | 201 |
| 210 // Returns the number of history items before/after the current | 202 // Returns the number of history items before/after the current |
| 211 // history item. | 203 // history item. |
| 212 virtual int historyBackListCount() { return 0; } | 204 virtual int historyBackListCount() { return 0; } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 void show(WebNavigationPolicy) override {} | 272 void show(WebNavigationPolicy) override {} |
| 281 virtual WebWidgetClient* widgetClient() { return this; } | 273 virtual WebWidgetClient* widgetClient() { return this; } |
| 282 | 274 |
| 283 protected: | 275 protected: |
| 284 ~WebViewClient() {} | 276 ~WebViewClient() {} |
| 285 }; | 277 }; |
| 286 | 278 |
| 287 } // namespace blink | 279 } // namespace blink |
| 288 | 280 |
| 289 #endif | 281 #endif |
| OLD | NEW |