| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 enum DragAction { | 551 enum DragAction { |
| 551 DragEnter, | 552 DragEnter, |
| 552 DragOver | 553 DragOver |
| 553 }; | 554 }; |
| 554 | 555 |
| 555 explicit WebViewImpl(WebViewClient*); | 556 explicit WebViewImpl(WebViewClient*); |
| 556 ~WebViewImpl() override; | 557 ~WebViewImpl() override; |
| 557 | 558 |
| 558 WebTextInputType textInputType(); | 559 WebTextInputType textInputType(); |
| 559 int textInputFlags(); | 560 int textInputFlags(); |
| 561 Element* nextFocusableElementInForm(Element*, WebFocusType); |
| 562 bool isListeningToKeyboardEvents(Element*); |
| 560 | 563 |
| 561 WebString inputModeOfFocusedElement(); | 564 WebString inputModeOfFocusedElement(); |
| 562 | 565 |
| 563 // Returns true if the event was actually processed. | 566 // Returns true if the event was actually processed. |
| 564 bool keyEventDefault(const WebKeyboardEvent&); | 567 bool keyEventDefault(const WebKeyboardEvent&); |
| 565 | 568 |
| 566 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); | 569 bool confirmComposition(const WebString& text, ConfirmCompositionBehavior); |
| 567 | 570 |
| 568 // Returns true if the view was scrolled. | 571 // Returns true if the view was scrolled. |
| 569 bool scrollViewWithKeyboard(int keyCode, int modifiers); | 572 bool scrollViewWithKeyboard(int keyCode, int modifiers); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 }; | 763 }; |
| 761 | 764 |
| 762 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 765 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 763 // We have no ways to check if the specified WebView is an instance of | 766 // We have no ways to check if the specified WebView is an instance of |
| 764 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 767 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 765 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 768 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 766 | 769 |
| 767 } // namespace blink | 770 } // namespace blink |
| 768 | 771 |
| 769 #endif | 772 #endif |
| OLD | NEW |