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

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

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: 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
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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 // Draggable regions ---------------------------------------------------- 253 // Draggable regions ----------------------------------------------------
254 254
255 // Informs the browser that the draggable regions have been updated. 255 // Informs the browser that the draggable regions have been updated.
256 virtual void draggableRegionsChanged() { } 256 virtual void draggableRegionsChanged() { }
257 257
258 // TODO(lfg): These methods are only exposed through WebViewClient while we 258 // TODO(lfg): These methods are only exposed through WebViewClient while we
259 // refactor WebView to not inherit from WebWidget. 259 // refactor WebView to not inherit from WebWidget.
260 // WebWidgetClient overrides. 260 // WebWidgetClient overrides.
261 void closeWidgetSoon() override {} 261 void closeWidgetSoon() override {}
262 void convertViewportToWindow(WebRect* rect) override {}
263 void convertWindowToViewport(WebFloatRect* rect) override {}
264 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {} 262 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 {} 263 void didOverscroll(const WebFloatSize& overscrollDelta, const WebFloatSize& accumulatedOverscroll, const WebFloatPoint& positionInViewport, const WebFloatSi ze& velocityInViewport) override {}
266 void didUpdateTextOfFocusedElementByNonUserInput() override {} 264 void didUpdateTextOfFocusedElementByNonUserInput() override {}
267 void hasTouchEventHandlers(bool) override {} 265 void hasTouchEventHandlers(bool) override {}
268 void initializeLayerTreeView() override {} 266 void initializeLayerTreeView() override {}
269 void onMouseDown(const WebNode& mouseDownNode) override {} 267 void onMouseDown(const WebNode& mouseDownNode) override {}
270 void resetInputMethod() override {} 268 void resetInputMethod() override {}
271 WebScreenInfo screenInfo() override { return WebScreenInfo(); } 269 WebScreenInfo screenInfo() override { return WebScreenInfo(); }
272 void setToolTipText(const WebString&, WebTextDirection hint) override {} 270 void setToolTipText(const WebString&, WebTextDirection hint) override {}
273 void setTouchAction(WebTouchAction touchAction) override {} 271 void setTouchAction(WebTouchAction touchAction) override {}
274 void showImeIfNeeded() override {} 272 void showImeIfNeeded() override {}
275 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod e& tappedNode, bool pageChanged) override {} 273 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, const WebNod e& tappedNode, bool pageChanged) override {}
276 void show(WebNavigationPolicy) override {} 274 void show(WebNavigationPolicy) override {}
277 WebRect windowResizerRect() override { return WebRect(); } 275 WebRect windowResizerRect() override { return WebRect(); }
278 virtual WebWidgetClient* widgetClient() { return this; } 276 virtual WebWidgetClient* widgetClient() { return this; }
279 277
280 protected: 278 protected:
281 ~WebViewClient() { } 279 ~WebViewClient() { }
282 }; 280 };
283 281
284 } // namespace blink 282 } // namespace blink
285 283
286 #endif 284 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698