| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // The navigation resulted in no change to the documents within the page. | 217 // The navigation resulted in no change to the documents within the page. |
| 218 // For example, the navigation may have just resulted in scrolling to a | 218 // For example, the navigation may have just resulted in scrolling to a |
| 219 // named anchor or a PopState event may have been dispatched. | 219 // named anchor or a PopState event may have been dispatched. |
| 220 virtual void didNavigateWithinPage(WebFrame*, bool isNewNavigation) { } | 220 virtual void didNavigateWithinPage(WebFrame*, bool isNewNavigation) { } |
| 221 | 221 |
| 222 // Called upon update to scroll position, document state, and other | 222 // Called upon update to scroll position, document state, and other |
| 223 // non-navigational events related to the data held by WebHistoryItem. | 223 // non-navigational events related to the data held by WebHistoryItem. |
| 224 // WARNING: This method may be called very frequently. | 224 // WARNING: This method may be called very frequently. |
| 225 virtual void didUpdateCurrentHistoryItem(WebFrame*) { } | 225 virtual void didUpdateCurrentHistoryItem(WebFrame*) { } |
| 226 | 226 |
| 227 // Editing ------------------------------------------------------------- |
| 228 |
| 229 // These methods allow the client to intercept and overrule editing |
| 230 // operations. |
| 231 virtual void didChangeSelection(bool isSelectionEmpty) { } |
| 232 |
| 227 | 233 |
| 228 // UI ------------------------------------------------------------------ | 234 // UI ------------------------------------------------------------------ |
| 229 | 235 |
| 230 // Shows a context menu with commands relevant to a specific element on | 236 // Shows a context menu with commands relevant to a specific element on |
| 231 // the given frame. Additional context data is supplied. | 237 // the given frame. Additional context data is supplied. |
| 232 virtual void showContextMenu(const WebContextMenuData&) { } | 238 virtual void showContextMenu(const WebContextMenuData&) { } |
| 233 | 239 |
| 234 // Called when the data attached to the currently displayed context menu is | 240 // Called when the data attached to the currently displayed context menu is |
| 235 // invalidated. The context menu may be closed if possible. | 241 // invalidated. The context menu may be closed if possible. |
| 236 virtual void clearContextMenu() { } | 242 virtual void clearContextMenu() { } |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 399 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
| 394 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 400 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
| 395 | 401 |
| 396 protected: | 402 protected: |
| 397 ~WebFrameClient() { } | 403 ~WebFrameClient() { } |
| 398 }; | 404 }; |
| 399 | 405 |
| 400 } // namespace blink | 406 } // namespace blink |
| 401 | 407 |
| 402 #endif | 408 #endif |
| OLD | NEW |