| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // selection. If the selection range is empty, it returns false. | 161 // selection. If the selection range is empty, it returns false. |
| 162 virtual bool SelectionTextDirection(WebTextDirection& start, | 162 virtual bool SelectionTextDirection(WebTextDirection& start, |
| 163 WebTextDirection& end) const { | 163 WebTextDirection& end) const { |
| 164 return false; | 164 return false; |
| 165 } | 165 } |
| 166 | 166 |
| 167 // Returns true if the selection range is nonempty and its anchor is first | 167 // Returns true if the selection range is nonempty and its anchor is first |
| 168 // (i.e its anchor is its start). | 168 // (i.e its anchor is its start). |
| 169 virtual bool IsSelectionAnchorFirst() const { return false; } | 169 virtual bool IsSelectionAnchorFirst() const { return false; } |
| 170 | 170 |
| 171 // Fetch the current selection range of this WebWidget. | |
| 172 virtual WebRange CaretOrSelectionRange() { return WebRange(); } | |
| 173 | |
| 174 // Changes the text direction of the selected input node. | 171 // Changes the text direction of the selected input node. |
| 175 virtual void SetTextDirection(WebTextDirection) {} | 172 virtual void SetTextDirection(WebTextDirection) {} |
| 176 | 173 |
| 177 // Returns true if the WebWidget uses GPU accelerated compositing | 174 // Returns true if the WebWidget uses GPU accelerated compositing |
| 178 // to render its contents. | 175 // to render its contents. |
| 179 virtual bool IsAcceleratedCompositingActive() const { return false; } | 176 virtual bool IsAcceleratedCompositingActive() const { return false; } |
| 180 | 177 |
| 181 // Returns true if the WebWidget created is of type WebView. | 178 // Returns true if the WebWidget created is of type WebView. |
| 182 virtual bool IsWebView() const { return false; } | 179 virtual bool IsWebView() const { return false; } |
| 183 | 180 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // Called by client to request showing the context menu. | 225 // Called by client to request showing the context menu. |
| 229 virtual void ShowContextMenu(WebMenuSourceType) {} | 226 virtual void ShowContextMenu(WebMenuSourceType) {} |
| 230 | 227 |
| 231 protected: | 228 protected: |
| 232 ~WebWidget() {} | 229 ~WebWidget() {} |
| 233 }; | 230 }; |
| 234 | 231 |
| 235 } // namespace blink | 232 } // namespace blink |
| 236 | 233 |
| 237 #endif | 234 #endif |
| OLD | NEW |