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

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

Issue 2290523004: Move onMouseDown from WebWidgetClient to WebViewClient. (Closed)
Patch Set: adding todo Created 4 years, 3 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 | « no previous file | 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Returns comma separated list of accept languages. 190 // Returns comma separated list of accept languages.
191 virtual WebString acceptLanguages() { return WebString(); } 191 virtual WebString acceptLanguages() { return WebString(); }
192 192
193 // Called when the View has changed size as a result of an auto-resize. 193 // Called when the View has changed size as a result of an auto-resize.
194 virtual void didAutoResize(const WebSize& newSize) {} 194 virtual void didAutoResize(const WebSize& newSize) {}
195 195
196 // Called when the View acquires focus. 196 // Called when the View acquires focus.
197 virtual void didFocus() {} 197 virtual void didFocus() {}
198 198
199 // TODO(lfg): The callback below is exposed in RenderViewObserver and only
200 // used to implement autofill. We should figure out a better way to plumb
201 // this.
202 // Called immediately after a mousedown event is dispatched due to a mouse
203 // press or gesture tap.
204 // Note: This is called even when the mouse down event is prevent default.
205 virtual void onMouseDown(const WebNode& mouseDownNode) { }
206
199 // Session history ----------------------------------------------------- 207 // Session history -----------------------------------------------------
200 208
201 // Tells the embedder to navigate back or forward in session history by 209 // Tells the embedder to navigate back or forward in session history by
202 // the given offset (relative to the current position in session 210 // the given offset (relative to the current position in session
203 // history). 211 // history).
204 virtual void navigateBackForwardSoon(int offset) { } 212 virtual void navigateBackForwardSoon(int offset) { }
205 213
206 // Returns the number of history items before/after the current 214 // Returns the number of history items before/after the current
207 // history item. 215 // history item.
208 virtual int historyBackListCount() { return 0; } 216 virtual int historyBackListCount() { return 0; }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // refactor WebView to not inherit from WebWidget. 267 // refactor WebView to not inherit from WebWidget.
260 // WebWidgetClient overrides. 268 // WebWidgetClient overrides.
261 void closeWidgetSoon() override {} 269 void closeWidgetSoon() override {}
262 void convertViewportToWindow(WebRect* rect) override {} 270 void convertViewportToWindow(WebRect* rect) override {}
263 void convertWindowToViewport(WebFloatRect* rect) override {} 271 void convertWindowToViewport(WebFloatRect* rect) override {}
264 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {} 272 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {}
265 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize& accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi ze& velocityInViewport) override {} 273 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize& accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi ze& velocityInViewport) override {}
266 void didUpdateTextOfFocusedElementByNonUserInput() override {} 274 void didUpdateTextOfFocusedElementByNonUserInput() override {}
267 void hasTouchEventHandlers(bool) override {} 275 void hasTouchEventHandlers(bool) override {}
268 void initializeLayerTreeView() override {} 276 void initializeLayerTreeView() override {}
269 void onMouseDown(const WebNode& mouseDownNode) override {}
270 void resetInputMethod() override {} 277 void resetInputMethod() override {}
271 WebScreenInfo screenInfo() override { return WebScreenInfo(); } 278 WebScreenInfo screenInfo() override { return WebScreenInfo(); }
272 void setToolTipText(const WebString&, WebTextDirection hint) override {} 279 void setToolTipText(const WebString&, WebTextDirection hint) override {}
273 void setTouchAction(WebTouchAction touchAction) override {} 280 void setTouchAction(WebTouchAction touchAction) override {}
274 void showImeIfNeeded() override {} 281 void showImeIfNeeded() override {}
275 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod e& tappedNode, bool pageChanged) override {} 282 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod e& tappedNode, bool pageChanged) override {}
276 void show(WebNavigationPolicy) override {} 283 void show(WebNavigationPolicy) override {}
277 WebRect windowResizerRect() override { return WebRect(); } 284 WebRect windowResizerRect() override { return WebRect(); }
278 virtual WebWidgetClient* widgetClient() { return this; } 285 virtual WebWidgetClient* widgetClient() { return this; }
279 286
280 protected: 287 protected:
281 ~WebViewClient() { } 288 ~WebViewClient() { }
282 }; 289 };
283 290
284 } // namespace blink 291 } // namespace blink
285 292
286 #endif 293 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698