| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 // Take focus away from the WebView by focusing an adjacent UI element | 161 // Take focus away from the WebView by focusing an adjacent UI element |
| 162 // in the containing window. | 162 // in the containing window. |
| 163 virtual void FocusNext() {} | 163 virtual void FocusNext() {} |
| 164 virtual void FocusPrevious() {} | 164 virtual void FocusPrevious() {} |
| 165 | 165 |
| 166 // Called when a new node gets focused. |fromNode| is the previously focused | 166 // Called when a new node gets focused. |fromNode| is the previously focused |
| 167 // node, |toNode| is the newly focused node. Either can be null. | 167 // node, |toNode| is the newly focused node. Either can be null. |
| 168 virtual void FocusedNodeChanged(const WebNode& from_node, | 168 virtual void FocusedNodeChanged(const WebNode& from_node, |
| 169 const WebNode& to_node) {} | 169 const WebNode& to_node) {} |
| 170 virtual void DidCancelCompositionOnSelectionChange() {} |
| 170 | 171 |
| 171 // Called to check if layout update should be processed. | 172 // Called to check if layout update should be processed. |
| 172 virtual bool CanUpdateLayout() { return false; } | 173 virtual bool CanUpdateLayout() { return false; } |
| 173 | 174 |
| 174 // Indicates two things: | 175 // Indicates two things: |
| 175 // 1) This view may have a new layout now. | 176 // 1) This view may have a new layout now. |
| 176 // 2) Calling layout() is a no-op. | 177 // 2) Calling layout() is a no-op. |
| 177 // After calling WebWidget::layout(), expect to get this notification | 178 // After calling WebWidget::layout(), expect to get this notification |
| 178 // unless the view did not need a layout. | 179 // unless the view did not need a layout. |
| 179 virtual void DidUpdateLayout() {} | 180 virtual void DidUpdateLayout() {} |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 bool page_changed) override {} | 267 bool page_changed) override {} |
| 267 void Show(WebNavigationPolicy) override {} | 268 void Show(WebNavigationPolicy) override {} |
| 268 virtual WebWidgetClient* WidgetClient() { return this; } | 269 virtual WebWidgetClient* WidgetClient() { return this; } |
| 269 | 270 |
| 270 protected: | 271 protected: |
| 271 }; | 272 }; |
| 272 | 273 |
| 273 } // namespace blink | 274 } // namespace blink |
| 274 | 275 |
| 275 #endif | 276 #endif |
| OLD | NEW |