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

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

Issue 971813002: Add a callback from Blink to Chromium for when page scale changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « Source/web/WebViewImpl.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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Zoom ---------------------------------------------------------------- 242 // Zoom ----------------------------------------------------------------
243 243
244 // Informs the browser that the zoom levels for this frame have changed from 244 // Informs the browser that the zoom levels for this frame have changed from
245 // the default values. 245 // the default values.
246 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { } 246 virtual void zoomLimitsChanged(double minimumLevel, double maximumLevel) { }
247 247
248 // Informs the browser that the zoom level has changed as a result of an 248 // Informs the browser that the zoom level has changed as a result of an
249 // action that wasn't initiated by the client. 249 // action that wasn't initiated by the client.
250 virtual void zoomLevelChanged() { } 250 virtual void zoomLevelChanged() { }
251 251
252 // Informs the browser that the page scale has changed.
253 virtual void pageScaleFactorChanged() { }
252 254
253 // Navigator Content Utils -------------------------------------------- 255 // Navigator Content Utils --------------------------------------------
254 256
255 // Registers a new URL handler for the given protocol. 257 // Registers a new URL handler for the given protocol.
256 virtual void registerProtocolHandler(const WebString& scheme, 258 virtual void registerProtocolHandler(const WebString& scheme,
257 const WebURL& url, 259 const WebURL& url,
258 const WebString& title) { } 260 const WebString& title) { }
259 261
260 // Unregisters a given URL handler for the given protocol. 262 // Unregisters a given URL handler for the given protocol.
261 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & url) { } 263 virtual void unregisterProtocolHandler(const WebString& scheme, const WebURL & url) { }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // Informs the browser that the draggable regions have been updated. 297 // Informs the browser that the draggable regions have been updated.
296 virtual void draggableRegionsChanged() { } 298 virtual void draggableRegionsChanged() { }
297 299
298 protected: 300 protected:
299 ~WebViewClient() { } 301 ~WebViewClient() { }
300 }; 302 };
301 303
302 } // namespace blink 304 } // namespace blink
303 305
304 #endif 306 #endif
OLDNEW
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698