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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void setOpenedByDOM() override; | 177 void setOpenedByDOM() override; |
178 WebFrame* mainFrame() override; | 178 WebFrame* mainFrame() override; |
179 WebFrame* findFrameByName( | 179 WebFrame* findFrameByName( |
180 const WebString& name, WebFrame* relativeToFrame) override; | 180 const WebString& name, WebFrame* relativeToFrame) override; |
181 WebFrame* focusedFrame() override; | 181 WebFrame* focusedFrame() override; |
182 void setFocusedFrame(WebFrame*) override; | 182 void setFocusedFrame(WebFrame*) override; |
183 void setInitialFocus(bool reverse) override; | 183 void setInitialFocus(bool reverse) override; |
184 void clearFocusedElement() override; | 184 void clearFocusedElement() override; |
185 bool scrollFocusedNodeIntoRect(const WebRect&) override; | 185 bool scrollFocusedNodeIntoRect(const WebRect&) override; |
186 void zoomToFindInPageRect(const WebRect&); | 186 void zoomToFindInPageRect(const WebRect&); |
| 187 void advanceFocusInForm(WebFocusType) override; |
187 void advanceFocus(bool reverse) override; | 188 void advanceFocus(bool reverse) override; |
188 double zoomLevel() override; | 189 double zoomLevel() override; |
189 double setZoomLevel(double) override; | 190 double setZoomLevel(double) override; |
190 void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLevel) ove
rride; | 191 void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLevel) ove
rride; |
191 float textZoomFactor() override; | 192 float textZoomFactor() override; |
192 float setTextZoomFactor(float) override; | 193 float setTextZoomFactor(float) override; |
193 bool zoomToMultipleTargetsRect(const WebRect&) override; | 194 bool zoomToMultipleTargetsRect(const WebRect&) override; |
194 float pageScaleFactor() const override; | 195 float pageScaleFactor() const override; |
195 void setDefaultPageScaleLimits(float minScale, float maxScale) override; | 196 void setDefaultPageScaleLimits(float minScale, float maxScale) override; |
196 void setInitialPageScaleOverride(float) override; | 197 void setInitialPageScaleOverride(float) override; |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 enum DragAction { | 550 enum DragAction { |
550 DragEnter, | 551 DragEnter, |
551 DragOver | 552 DragOver |
552 }; | 553 }; |
553 | 554 |
554 explicit WebViewImpl(WebViewClient*); | 555 explicit WebViewImpl(WebViewClient*); |
555 ~WebViewImpl() override; | 556 ~WebViewImpl() override; |
556 | 557 |
557 WebTextInputType textInputType(); | 558 WebTextInputType textInputType(); |
558 int textInputFlags(); | 559 int textInputFlags(); |
| 560 Element* nextFocusableElementInForm(Element*, WebFocusType); |
| 561 bool isListeningToKeyboardEvents(Element*); |
559 | 562 |
560 WebString inputModeOfFocusedElement(); | 563 WebString inputModeOfFocusedElement(); |
561 | 564 |
562 // Returns true if the event was actually processed. | 565 // Returns true if the event was actually processed. |
563 bool keyEventDefault(const WebKeyboardEvent&); | 566 bool keyEventDefault(const WebKeyboardEvent&); |
564 | 567 |
565 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); | 568 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); |
566 | 569 |
567 // Returns true if the view was scrolled. | 570 // Returns true if the view was scrolled. |
568 bool scrollViewWithKeyboard(int keyCode, int modifiers); | 571 bool scrollViewWithKeyboard(int keyCode, int modifiers); |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 }; | 761 }; |
759 | 762 |
760 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 763 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
761 // We have no ways to check if the specified WebView is an instance of | 764 // We have no ways to check if the specified WebView is an instance of |
762 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 765 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
763 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 766 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
764 | 767 |
765 } // namespace blink | 768 } // namespace blink |
766 | 769 |
767 #endif | 770 #endif |
OLD | NEW |