Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: third_party/WebKit/public/web/WebViewClient.h

Issue 2143643002: Remove didAutoResize from WebWidgetClient and move it to WebViewClient.. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/public/web/WebWidgetClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // After calling WebWidget::layout(), expect to get this notification 180 // After calling WebWidget::layout(), expect to get this notification
181 // unless the view did not need a layout. 181 // unless the view did not need a layout.
182 virtual void didUpdateLayout() { } 182 virtual void didUpdateLayout() { }
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.
191 virtual void didAutoResize(const WebSize& newSize) {}
192
190 193
191 // Session history ----------------------------------------------------- 194 // Session history -----------------------------------------------------
192 195
193 // Tells the embedder to navigate back or forward in session history by 196 // Tells the embedder to navigate back or forward in session history by
194 // the given offset (relative to the current position in session 197 // the given offset (relative to the current position in session
195 // history). 198 // history).
196 virtual void navigateBackForwardSoon(int offset) { } 199 virtual void navigateBackForwardSoon(int offset) { }
197 200
198 // Returns the number of history items before/after the current 201 // Returns the number of history items before/after the current
199 // history item. 202 // history item.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // Informs the browser that the draggable regions have been updated. 250 // Informs the browser that the draggable regions have been updated.
248 virtual void draggableRegionsChanged() { } 251 virtual void draggableRegionsChanged() { }
249 252
250 // TODO(lfg): These methods are only exposed through WebViewClient while we 253 // TODO(lfg): These methods are only exposed through WebViewClient while we
251 // refactor WebView to not inherit from WebWidget. 254 // refactor WebView to not inherit from WebWidget.
252 // WebWidgetClient overrides. 255 // WebWidgetClient overrides.
253 bool allowsBrokenNullLayerTreeView() const override { return false; } 256 bool allowsBrokenNullLayerTreeView() const override { return false; }
254 void closeWidgetSoon() override {} 257 void closeWidgetSoon() override {}
255 void convertViewportToWindow(WebRect* rect) override {} 258 void convertViewportToWindow(WebRect* rect) override {}
256 void convertWindowToViewport(WebFloatRect* rect) override {} 259 void convertWindowToViewport(WebFloatRect* rect) override {}
257 void didAutoResize(const WebSize& newSize) override {}
258 void didFocus() override {} 260 void didFocus() override {}
259 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {} 261 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {}
260 void didInvalidateRect(const WebRect&) override {} 262 void didInvalidateRect(const WebRect&) override {}
261 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize& accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi ze& velocityInViewport) override {} 263 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize& accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi ze& velocityInViewport) override {}
262 void didUpdateTextOfFocusedElementByNonUserInput() override {} 264 void didUpdateTextOfFocusedElementByNonUserInput() override {}
263 void hasTouchEventHandlers(bool) override {} 265 void hasTouchEventHandlers(bool) override {}
264 void initializeLayerTreeView() override {} 266 void initializeLayerTreeView() override {}
265 WebLayerTreeView* layerTreeView() override { return 0; } 267 WebLayerTreeView* layerTreeView() override { return 0; }
266 void onMouseDown(const WebNode& mouseDownNode) override {} 268 void onMouseDown(const WebNode& mouseDownNode) override {}
267 void resetInputMethod() override {} 269 void resetInputMethod() override {}
268 WebRect rootWindowRect() override { return WebRect(); } 270 WebRect rootWindowRect() override { return WebRect(); }
269 void scheduleAnimation() override {} 271 void scheduleAnimation() override {}
270 WebScreenInfo screenInfo() override { return WebScreenInfo(); } 272 WebScreenInfo screenInfo() override { return WebScreenInfo(); }
271 void setToolTipText(const WebString&, WebTextDirection hint) override {} 273 void setToolTipText(const WebString&, WebTextDirection hint) override {}
272 void setTouchAction(WebTouchAction touchAction) override {} 274 void setTouchAction(WebTouchAction touchAction) override {}
273 void setWindowRect(const WebRect&) override {} 275 void setWindowRect(const WebRect&) override {}
274 void showImeIfNeeded() override {} 276 void showImeIfNeeded() override {}
275 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod e& tappedNode, bool pageChanged) override {} 277 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod e& tappedNode, bool pageChanged) override {}
276 void show(WebNavigationPolicy) override {} 278 void show(WebNavigationPolicy) override {}
277 WebRect windowRect() override { return WebRect(); } 279 WebRect windowRect() override { return WebRect(); }
278 WebRect windowResizerRect() override { return WebRect(); } 280 WebRect windowResizerRect() override { return WebRect(); }
279 281
280 protected: 282 protected:
281 ~WebViewClient() { } 283 ~WebViewClient() { }
282 }; 284 };
283 285
284 } // namespace blink 286 } // namespace blink
285 287
286 #endif 288 #endif
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698