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