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

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

Issue 24272003: [DevTools] Blink-side APIs for device metrics emulation in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Rebase Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « public/web/WebSettings.h ('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, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011, 2012 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 virtual void inspectElementAt(const WebPoint&) = 0; 395 virtual void inspectElementAt(const WebPoint&) = 0;
396 396
397 // Settings used by the inspector. 397 // Settings used by the inspector.
398 virtual WebString inspectorSettings() const = 0; 398 virtual WebString inspectorSettings() const = 0;
399 virtual void setInspectorSettings(const WebString&) = 0; 399 virtual void setInspectorSettings(const WebString&) = 0;
400 virtual bool inspectorSetting(const WebString& key, 400 virtual bool inspectorSetting(const WebString& key,
401 WebString* value) const = 0; 401 WebString* value) const = 0;
402 virtual void setInspectorSetting(const WebString& key, 402 virtual void setInspectorSetting(const WebString& key,
403 const WebString& value) = 0; 403 const WebString& value) = 0;
404 404
405 // Set an override of device scale factor passed from WebView to
406 // compositor. Pass zero to cancel override. This is used to implement
407 // device metrics emulation.
408 virtual void setCompositorDeviceScaleFactorOverride(float) = 0;
409
410 // Set scaling transformation on the root composited layer. This is used
411 // to implement device metrics emulation.
412 virtual void setRootLayerScaleTransform(float) = 0;
413
405 // The embedder may optionally engage a WebDevToolsAgent. This may only 414 // The embedder may optionally engage a WebDevToolsAgent. This may only
406 // be set once per WebView. 415 // be set once per WebView.
407 virtual WebDevToolsAgent* devToolsAgent() = 0; 416 virtual WebDevToolsAgent* devToolsAgent() = 0;
408 417
409 418
410 // Accessibility ------------------------------------------------------- 419 // Accessibility -------------------------------------------------------
411 420
412 // Returns the accessibility object for this view. 421 // Returns the accessibility object for this view.
413 virtual WebAXObject accessibilityObject() = 0; 422 virtual WebAXObject accessibilityObject() = 0;
414 423
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 528
520 // Testing functionality for TestRunner --------------------------------- 529 // Testing functionality for TestRunner ---------------------------------
521 530
522 protected: 531 protected:
523 ~WebView() {} 532 ~WebView() {}
524 }; 533 };
525 534
526 } // namespace WebKit 535 } // namespace WebKit
527 536
528 #endif 537 #endif
OLDNEW
« no previous file with comments | « public/web/WebSettings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698