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