| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 // Returns comma separated list of accept languages. | 189 // Returns comma separated list of accept languages. |
| 190 virtual WebString AcceptLanguages() { return WebString(); } | 190 virtual WebString AcceptLanguages() { return WebString(); } |
| 191 | 191 |
| 192 // Called when the View has changed size as a result of an auto-resize. | 192 // Called when the View has changed size as a result of an auto-resize. |
| 193 virtual void DidAutoResize(const WebSize& new_size) {} | 193 virtual void DidAutoResize(const WebSize& new_size) {} |
| 194 | 194 |
| 195 // Called when the View acquires focus. | 195 // Called when the View acquires focus. |
| 196 virtual void DidFocus() {} | 196 virtual void DidFocus() {} |
| 197 | 197 |
| 198 // TODO(lfg): The callback below is exposed in RenderViewObserver and only | |
| 199 // used to implement autofill. We should figure out a better way to plumb | |
| 200 // this. | |
| 201 // Called immediately after a mousedown event is dispatched due to a mouse | |
| 202 // press or gesture tap. | |
| 203 // Note: This is called even when the mouse down event is prevent default. | |
| 204 virtual void OnMouseDown(const WebNode& mouse_down_node) {} | |
| 205 | |
| 206 // Session history ----------------------------------------------------- | 198 // Session history ----------------------------------------------------- |
| 207 | 199 |
| 208 // Tells the embedder to navigate back or forward in session history by | 200 // Tells the embedder to navigate back or forward in session history by |
| 209 // the given offset (relative to the current position in session | 201 // the given offset (relative to the current position in session |
| 210 // history). | 202 // history). |
| 211 virtual void NavigateBackForwardSoon(int offset) {} | 203 virtual void NavigateBackForwardSoon(int offset) {} |
| 212 | 204 |
| 213 // Returns the number of history items before/after the current | 205 // Returns the number of history items before/after the current |
| 214 // history item. | 206 // history item. |
| 215 virtual int HistoryBackListCount() { return 0; } | 207 virtual int HistoryBackListCount() { return 0; } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 bool page_changed) override {} | 258 bool page_changed) override {} |
| 267 void Show(WebNavigationPolicy) override {} | 259 void Show(WebNavigationPolicy) override {} |
| 268 virtual WebWidgetClient* WidgetClient() { return this; } | 260 virtual WebWidgetClient* WidgetClient() { return this; } |
| 269 | 261 |
| 270 protected: | 262 protected: |
| 271 }; | 263 }; |
| 272 | 264 |
| 273 } // namespace blink | 265 } // namespace blink |
| 274 | 266 |
| 275 #endif | 267 #endif |
| OLD | NEW |