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

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

Issue 2148463002: Remove rootWindowRect 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 // This method enumerates all the files in the path. It returns immediately 104 // This method enumerates all the files in the path. It returns immediately
105 // and asynchronously invokes the WebFileChooserCompletion with all the 105 // and asynchronously invokes the WebFileChooserCompletion with all the
106 // files in the directory. Returns false if the WebFileChooserCompletion 106 // files in the directory. Returns false if the WebFileChooserCompletion
107 // will never be called. 107 // will never be called.
108 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } 108 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; }
109 109
110 // Called when PageImportanceSignals for the WebView is updated. 110 // Called when PageImportanceSignals for the WebView is updated.
111 virtual void pageImportanceSignalsChanged() { } 111 virtual void pageImportanceSignalsChanged() { }
112 112
113 // Called to get the position of the root window containing the widget
114 // in screen coordinates.
115 virtual WebRect rootWindowRect() { return WebRect(); }
116
113 // Editing ------------------------------------------------------------- 117 // Editing -------------------------------------------------------------
114 118
115 // These methods allow the client to intercept and overrule editing 119 // These methods allow the client to intercept and overrule editing
116 // operations. 120 // operations.
117 virtual void didCancelCompositionOnSelectionChange() { } 121 virtual void didCancelCompositionOnSelectionChange() { }
118 virtual void didChangeContents() { } 122 virtual void didChangeContents() { }
119 123
120 // This method is called in response to WebView's handleInputEvent() 124 // This method is called in response to WebView's handleInputEvent()
121 // when the default action for the current keyboard event is not 125 // when the default action for the current keyboard event is not
122 // suppressed by the page, to give the embedder a chance to handle 126 // suppressed by the page, to give the embedder a chance to handle
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 void didFocus() override {} 264 void didFocus() override {}
261 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {} 265 void didHandleGestureEvent(const WebGestureEvent& event, bool eventCancelled ) override {}
262 void didInvalidateRect(const WebRect&) override {} 266 void didInvalidateRect(const WebRect&) override {}
263 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 {}
264 void didUpdateTextOfFocusedElementByNonUserInput() override {} 268 void didUpdateTextOfFocusedElementByNonUserInput() override {}
265 void hasTouchEventHandlers(bool) override {} 269 void hasTouchEventHandlers(bool) override {}
266 void initializeLayerTreeView() override {} 270 void initializeLayerTreeView() override {}
267 WebLayerTreeView* layerTreeView() override { return 0; } 271 WebLayerTreeView* layerTreeView() override { return 0; }
268 void onMouseDown(const WebNode& mouseDownNode) override {} 272 void onMouseDown(const WebNode& mouseDownNode) override {}
269 void resetInputMethod() override {} 273 void resetInputMethod() override {}
270 WebRect rootWindowRect() override { return WebRect(); }
271 void scheduleAnimation() override {} 274 void scheduleAnimation() override {}
272 WebScreenInfo screenInfo() override { return WebScreenInfo(); } 275 WebScreenInfo screenInfo() override { return WebScreenInfo(); }
273 void setToolTipText(const WebString&, WebTextDirection hint) override {} 276 void setToolTipText(const WebString&, WebTextDirection hint) override {}
274 void setTouchAction(WebTouchAction touchAction) override {} 277 void setTouchAction(WebTouchAction touchAction) override {}
275 void setWindowRect(const WebRect&) override {} 278 void setWindowRect(const WebRect&) override {}
276 void showImeIfNeeded() override {} 279 void showImeIfNeeded() override {}
277 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 {}
278 void show(WebNavigationPolicy) override {} 281 void show(WebNavigationPolicy) override {}
279 WebRect windowRect() override { return WebRect(); } 282 WebRect windowRect() override { return WebRect(); }
280 WebRect windowResizerRect() override { return WebRect(); } 283 WebRect windowResizerRect() override { return WebRect(); }
281 284
282 protected: 285 protected:
283 ~WebViewClient() { } 286 ~WebViewClient() { }
284 }; 287 };
285 288
286 } // namespace blink 289 } // namespace blink
287 290
288 #endif 291 #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