| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebView_h | 31 #ifndef WebView_h |
| 32 #define WebView_h | 32 #define WebView_h |
| 33 | 33 |
| 34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "../platform/WebDisplayMode.h" | 35 #include "../platform/WebDisplayMode.h" |
| 36 #include "../platform/WebFocusType.h" |
| 36 #include "../platform/WebPageVisibilityState.h" | 37 #include "../platform/WebPageVisibilityState.h" |
| 37 #include "../platform/WebString.h" | 38 #include "../platform/WebString.h" |
| 38 #include "../platform/WebVector.h" | 39 #include "../platform/WebVector.h" |
| 39 #include "WebDragOperation.h" | 40 #include "WebDragOperation.h" |
| 40 #include "WebHistoryCommitType.h" | 41 #include "WebHistoryCommitType.h" |
| 41 #include "WebHistoryItem.h" | 42 #include "WebHistoryItem.h" |
| 42 #include "WebWidget.h" | 43 #include "WebWidget.h" |
| 43 | 44 |
| 44 namespace blink { | 45 namespace blink { |
| 45 | 46 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // send it. | 173 // send it. |
| 173 virtual void clearFocusedElement() = 0; | 174 virtual void clearFocusedElement() = 0; |
| 174 | 175 |
| 175 // Scrolls the node currently in focus into |rect|, where |rect| is in | 176 // Scrolls the node currently in focus into |rect|, where |rect| is in |
| 176 // viewport space. Returns true if an animation was started. | 177 // viewport space. Returns true if an animation was started. |
| 177 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } | 178 virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; } |
| 178 | 179 |
| 179 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. | 180 // Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|. |
| 180 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } | 181 virtual void smoothScroll(int targetX, int targetY, long durationMs) { } |
| 181 | 182 |
| 183 // Advance the focus of the WebView to next text input element from current |
| 184 // input field wrt sequential navigation with TAB or Shift + TAB |
| 185 // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates |
| 186 // Shift + TAB. (Will be extended to other form Controls like Select element
, Checkbox, Radio etc.) |
| 187 virtual void advanceFocusInForm(WebFocusType focusType) {} |
| 188 |
| 182 // Advance the focus of the WebView forward to the next element or to the | 189 // Advance the focus of the WebView forward to the next element or to the |
| 183 // previous element in the tab sequence (if reverse is true). | 190 // previous element in the tab sequence (if reverse is true). |
| 184 virtual void advanceFocus(bool reverse) { } | 191 virtual void advanceFocus(bool reverse) { } |
| 185 | 192 |
| 186 // Animate a scale into the specified rect where multiple targets were | 193 // Animate a scale into the specified rect where multiple targets were |
| 187 // found from previous tap gesture. | 194 // found from previous tap gesture. |
| 188 // Returns false if it doesn't do any zooming. | 195 // Returns false if it doesn't do any zooming. |
| 189 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; | 196 virtual bool zoomToMultipleTargetsRect(const WebRect&) = 0; |
| 190 | 197 |
| 191 | 198 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // context's ability to deal with that failure gracefully can be tested. | 476 // context's ability to deal with that failure gracefully can be tested. |
| 470 virtual void forceNextDrawingBufferCreationToFail() = 0; | 477 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 471 | 478 |
| 472 protected: | 479 protected: |
| 473 ~WebView() {} | 480 ~WebView() {} |
| 474 }; | 481 }; |
| 475 | 482 |
| 476 } // namespace blink | 483 } // namespace blink |
| 477 | 484 |
| 478 #endif | 485 #endif |
| OLD | NEW |