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

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

Issue 1978763004: Drag image should always use the real device scale factor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // After calling WebWidget::layout(), expect to get this notification 193 // After calling WebWidget::layout(), expect to get this notification
194 // unless the view did not need a layout. 194 // unless the view did not need a layout.
195 virtual void didUpdateLayout() { } 195 virtual void didUpdateLayout() { }
196 196
197 // Return true to swallow the input event if the embedder will start a disam biguation popup 197 // Return true to swallow the input event if the embedder will start a disam biguation popup
198 virtual bool didTapMultipleTargets(const WebSize& visualViewportOffset, cons t WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } 198 virtual bool didTapMultipleTargets(const WebSize& visualViewportOffset, cons t WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; }
199 199
200 // Returns comma separated list of accept languages. 200 // Returns comma separated list of accept languages.
201 virtual WebString acceptLanguages() { return WebString(); } 201 virtual WebString acceptLanguages() { return WebString(); }
202 202
203 // Returns the acutal scale factor of the device even when emulated. Used fo r drag drop
204 // images that should use the real device scale factor even in dev tools.
205 virtual float nonEmulatedDeviceScaleFactor() { return 1.0f; }
203 206
204 // Session history ----------------------------------------------------- 207 // Session history -----------------------------------------------------
205 208
206 // 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
207 // the given offset (relative to the current position in session 210 // the given offset (relative to the current position in session
208 // history). 211 // history).
209 virtual void navigateBackForwardSoon(int offset) { } 212 virtual void navigateBackForwardSoon(int offset) { }
210 213
211 // Returns the number of history items before/after the current 214 // Returns the number of history items before/after the current
212 // history item. 215 // history item.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 WebRect windowRect() override { return WebRect(); } 307 WebRect windowRect() override { return WebRect(); }
305 WebRect windowResizerRect() override { return WebRect(); } 308 WebRect windowResizerRect() override { return WebRect(); }
306 309
307 protected: 310 protected:
308 ~WebViewClient() { } 311 ~WebViewClient() { }
309 }; 312 };
310 313
311 } // namespace blink 314 } // namespace blink
312 315
313 #endif 316 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698