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

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

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