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