| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 // Return true to swallow the input event if the embedder will start a disam
biguation popup | 184 // Return true to swallow the input event if the embedder will start a disam
biguation popup |
| 185 virtual bool didTapMultipleTargets(const WebSize& visualViewportOffset, cons
t WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } | 185 virtual bool didTapMultipleTargets(const WebSize& visualViewportOffset, cons
t WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } |
| 186 | 186 |
| 187 // Returns comma separated list of accept languages. | 187 // Returns comma separated list of accept languages. |
| 188 virtual WebString acceptLanguages() { return WebString(); } | 188 virtual WebString acceptLanguages() { return WebString(); } |
| 189 | 189 |
| 190 // Called when the View has changed size as a result of an auto-resize. | 190 // Called when the View has changed size as a result of an auto-resize. |
| 191 virtual void didAutoResize(const WebSize& newSize) {} | 191 virtual void didAutoResize(const WebSize& newSize) {} |
| 192 | 192 |
| 193 // Called when the View acquires focus. |
| 194 virtual void didFocus() {} |
| 193 | 195 |
| 194 // Session history ----------------------------------------------------- | 196 // Session history ----------------------------------------------------- |
| 195 | 197 |
| 196 // Tells the embedder to navigate back or forward in session history by | 198 // Tells the embedder to navigate back or forward in session history by |
| 197 // the given offset (relative to the current position in session | 199 // the given offset (relative to the current position in session |
| 198 // history). | 200 // history). |
| 199 virtual void navigateBackForwardSoon(int offset) { } | 201 virtual void navigateBackForwardSoon(int offset) { } |
| 200 | 202 |
| 201 // Returns the number of history items before/after the current | 203 // Returns the number of history items before/after the current |
| 202 // history item. | 204 // history item. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // Informs the browser that the draggable regions have been updated. | 252 // Informs the browser that the draggable regions have been updated. |
| 251 virtual void draggableRegionsChanged() { } | 253 virtual void draggableRegionsChanged() { } |
| 252 | 254 |
| 253 // TODO(lfg): These methods are only exposed through WebViewClient while we | 255 // TODO(lfg): These methods are only exposed through WebViewClient while we |
| 254 // refactor WebView to not inherit from WebWidget. | 256 // refactor WebView to not inherit from WebWidget. |
| 255 // WebWidgetClient overrides. | 257 // WebWidgetClient overrides. |
| 256 bool allowsBrokenNullLayerTreeView() const override { return false; } | 258 bool allowsBrokenNullLayerTreeView() const override { return false; } |
| 257 void closeWidgetSoon() override {} | 259 void closeWidgetSoon() override {} |
| 258 void convertViewportToWindow(WebRect* rect) override {} | 260 void convertViewportToWindow(WebRect* rect) override {} |
| 259 void convertWindowToViewport(WebFloatRect* rect) override {} | 261 void convertWindowToViewport(WebFloatRect* rect) override {} |
| 260 void didFocus() override {} | |
| 261 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled
) override {} | 262 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled
) override {} |
| 262 void didInvalidateRect(const WebRect&) override {} | 263 void didInvalidateRect(const WebRect&) override {} |
| 263 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize&
accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi
ze& velocityInViewport) override {} | 264 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize&
accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi
ze& velocityInViewport) override {} |
| 264 void didUpdateTextOfFocusedElementByNonUserInput() override {} | 265 void didUpdateTextOfFocusedElementByNonUserInput() override {} |
| 265 void hasTouchEventHandlers(bool) override {} | 266 void hasTouchEventHandlers(bool) override {} |
| 266 void initializeLayerTreeView() override {} | 267 void initializeLayerTreeView() override {} |
| 267 WebLayerTreeView* layerTreeView() override { return 0; } | 268 WebLayerTreeView* layerTreeView() override { return 0; } |
| 268 void onMouseDown(const WebNode& mouseDownNode) override {} | 269 void onMouseDown(const WebNode& mouseDownNode) override {} |
| 269 void resetInputMethod() override {} | 270 void resetInputMethod() override {} |
| 270 WebRect rootWindowRect() override { return WebRect(); } | 271 WebRect rootWindowRect() override { return WebRect(); } |
| 271 void scheduleAnimation() override {} | 272 void scheduleAnimation() override {} |
| 272 WebScreenInfo screenInfo() override { return WebScreenInfo(); } | 273 WebScreenInfo screenInfo() override { return WebScreenInfo(); } |
| 273 void setToolTipText(const WebString&, WebTextDirection hint) override {} | 274 void setToolTipText(const WebString&, WebTextDirection hint) override {} |
| 274 void setTouchAction(WebTouchAction touchAction) override {} | 275 void setTouchAction(WebTouchAction touchAction) override {} |
| 275 void setWindowRect(const WebRect&) override {} | 276 void setWindowRect(const WebRect&) override {} |
| 276 void showImeIfNeeded() override {} | 277 void showImeIfNeeded() override {} |
| 277 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod
e& tappedNode, bool pageChanged) override {} | 278 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod
e& tappedNode, bool pageChanged) override {} |
| 278 void show(WebNavigationPolicy) override {} | 279 void show(WebNavigationPolicy) override {} |
| 279 WebRect windowRect() override { return WebRect(); } | 280 WebRect windowRect() override { return WebRect(); } |
| 280 WebRect windowResizerRect() override { return WebRect(); } | 281 WebRect windowResizerRect() override { return WebRect(); } |
| 281 | 282 |
| 282 protected: | 283 protected: |
| 283 ~WebViewClient() { } | 284 ~WebViewClient() { } |
| 284 }; | 285 }; |
| 285 | 286 |
| 286 } // namespace blink | 287 } // namespace blink |
| 287 | 288 |
| 288 #endif | 289 #endif |
| OLD | NEW |