OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 WebFrame* mainFrame() override; | 179 WebFrame* mainFrame() override; |
180 WebFrame* findFrameByName( | 180 WebFrame* findFrameByName( |
181 const WebString& name, WebFrame* relativeToFrame) override; | 181 const WebString& name, WebFrame* relativeToFrame) override; |
182 WebFrame* focusedFrame() override; | 182 WebFrame* focusedFrame() override; |
183 void setFocusedFrame(WebFrame*) override; | 183 void setFocusedFrame(WebFrame*) override; |
184 void setInitialFocus(bool reverse) override; | 184 void setInitialFocus(bool reverse) override; |
185 void clearFocusedElement() override; | 185 void clearFocusedElement() override; |
186 bool scrollFocusedNodeIntoRect(const WebRect&) override; | 186 bool scrollFocusedNodeIntoRect(const WebRect&) override; |
187 void smoothScroll(int targetX, int targetY, long durationMs) override; | 187 void smoothScroll(int targetX, int targetY, long durationMs) override; |
188 void zoomToFindInPageRect(const WebRect&); | 188 void zoomToFindInPageRect(const WebRect&); |
| 189 void advanceFocusInForm(WebFocusType) override; |
189 void advanceFocus(bool reverse) override; | 190 void advanceFocus(bool reverse) override; |
190 double zoomLevel() override; | 191 double zoomLevel() override; |
191 double setZoomLevel(double) override; | 192 double setZoomLevel(double) override; |
192 void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLevel) ove
rride; | 193 void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLevel) ove
rride; |
193 float textZoomFactor() override; | 194 float textZoomFactor() override; |
194 float setTextZoomFactor(float) override; | 195 float setTextZoomFactor(float) override; |
195 bool zoomToMultipleTargetsRect(const WebRect&) override; | 196 bool zoomToMultipleTargetsRect(const WebRect&) override; |
196 float pageScaleFactor() const override; | 197 float pageScaleFactor() const override; |
197 void setDefaultPageScaleLimits(float minScale, float maxScale) override; | 198 void setDefaultPageScaleLimits(float minScale, float maxScale) override; |
198 void setInitialPageScaleOverride(float) override; | 199 void setInitialPageScaleOverride(float) override; |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 enum DragAction { | 555 enum DragAction { |
555 DragEnter, | 556 DragEnter, |
556 DragOver | 557 DragOver |
557 }; | 558 }; |
558 | 559 |
559 explicit WebViewImpl(WebViewClient*); | 560 explicit WebViewImpl(WebViewClient*); |
560 ~WebViewImpl() override; | 561 ~WebViewImpl() override; |
561 | 562 |
562 WebTextInputType textInputType(); | 563 WebTextInputType textInputType(); |
563 int textInputFlags(); | 564 int textInputFlags(); |
| 565 Element* nextFocusableElementInForm(Element*, WebFocusType); |
| 566 bool isListeningToKeyboardEvents(Element*); |
564 | 567 |
565 WebString inputModeOfFocusedElement(); | 568 WebString inputModeOfFocusedElement(); |
566 | 569 |
567 // Returns true if the event was actually processed. | 570 // Returns true if the event was actually processed. |
568 bool keyEventDefault(const WebKeyboardEvent&); | 571 bool keyEventDefault(const WebKeyboardEvent&); |
569 | 572 |
570 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); | 573 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); |
571 | 574 |
572 // Returns true if the view was scrolled. | 575 // Returns true if the view was scrolled. |
573 bool scrollViewWithKeyboard(int keyCode, int modifiers); | 576 bool scrollViewWithKeyboard(int keyCode, int modifiers); |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 }; | 767 }; |
765 | 768 |
766 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 769 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
767 // We have no ways to check if the specified WebView is an instance of | 770 // We have no ways to check if the specified WebView is an instance of |
768 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 771 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
769 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 772 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
770 | 773 |
771 } // namespace blink | 774 } // namespace blink |
772 | 775 |
773 #endif | 776 #endif |
OLD | NEW |