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