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

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

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP Created 7 years, 4 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
« Source/web/WebViewImpl.cpp ('K') | « 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // Sets the ratio as computed by computePageScaleConstraints. 287 // Sets the ratio as computed by computePageScaleConstraints.
288 virtual void setDeviceScaleFactor(float) = 0; 288 virtual void setDeviceScaleFactor(float) = 0;
289 289
290 290
291 // Fixed Layout -------------------------------------------------------- 291 // Fixed Layout --------------------------------------------------------
292 292
293 // In fixed layout mode, the layout of the page is independent of the 293 // In fixed layout mode, the layout of the page is independent of the
294 // view port size, given by WebWidget::size(). 294 // view port size, given by WebWidget::size().
295 295
296 virtual bool isFixedLayoutModeEnabled() const = 0;
297 virtual void enableFixedLayoutMode(bool enable) = 0;
298
299 virtual WebSize fixedLayoutSize() const = 0; 296 virtual WebSize fixedLayoutSize() const = 0;
300 virtual void setFixedLayoutSize(const WebSize&) = 0; 297 virtual void setFixedLayoutSize(const WebSize&) = 0;
301 298
302 299
303 // Auto-Resize ----------------------------------------------------------- 300 // Auto-Resize -----------------------------------------------------------
304 301
305 // In auto-resize mode, the view is automatically adjusted to fit the html 302 // In auto-resize mode, the view is automatically adjusted to fit the html
306 // content within the given bounds. 303 // content within the given bounds.
307 virtual void enableAutoResizeMode( 304 virtual void enableAutoResizeMode(
308 const WebSize& minSize, 305 const WebSize& minSize,
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 504
508 // Testing functionality for TestRunner --------------------------------- 505 // Testing functionality for TestRunner ---------------------------------
509 506
510 protected: 507 protected:
511 ~WebView() {} 508 ~WebView() {}
512 }; 509 };
513 510
514 } // namespace WebKit 511 } // namespace WebKit
515 512
516 #endif 513 #endif
OLDNEW
« Source/web/WebViewImpl.cpp ('K') | « public/web/WebSettings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698