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

Side by Side Diff: Source/web/WebViewImpl.h

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 virtual float minimumPageScaleFactor() const; 233 virtual float minimumPageScaleFactor() const;
234 virtual float maximumPageScaleFactor() const; 234 virtual float maximumPageScaleFactor() const;
235 virtual void saveScrollAndScaleState(); 235 virtual void saveScrollAndScaleState();
236 virtual void restoreScrollAndScaleState(); 236 virtual void restoreScrollAndScaleState();
237 virtual void resetScrollAndScaleState(); 237 virtual void resetScrollAndScaleState();
238 virtual void setIgnoreViewportTagScaleLimits(bool); 238 virtual void setIgnoreViewportTagScaleLimits(bool);
239 virtual WebSize contentsPreferredMinimumSize(); 239 virtual WebSize contentsPreferredMinimumSize();
240 240
241 virtual float deviceScaleFactor() const; 241 virtual float deviceScaleFactor() const;
242 virtual void setDeviceScaleFactor(float); 242 virtual void setDeviceScaleFactor(float);
243 virtual bool isFixedLayoutModeEnabled() const; 243
244 virtual void enableFixedLayoutMode(bool enable);
245 virtual WebSize fixedLayoutSize() const;
246 virtual void setFixedLayoutSize(const WebSize&); 244 virtual void setFixedLayoutSize(const WebSize&);
245
246 // DEPRECATED: Will be removed soon.
247 // See https://codereview.chromium.org/23819019/
248 virtual bool isFixedLayoutModeEnabled() const { return true; }
249 virtual void enableFixedLayoutMode(bool) { }
250 virtual WebSize fixedLayoutSize() const { return WebSize(); }
251
247 virtual void enableAutoResizeMode( 252 virtual void enableAutoResizeMode(
248 const WebSize& minSize, 253 const WebSize& minSize,
249 const WebSize& maxSize); 254 const WebSize& maxSize);
250 virtual void disableAutoResizeMode(); 255 virtual void disableAutoResizeMode();
251 virtual void performMediaPlayerAction( 256 virtual void performMediaPlayerAction(
252 const WebMediaPlayerAction& action, 257 const WebMediaPlayerAction& action,
253 const WebPoint& location); 258 const WebPoint& location);
254 virtual void performPluginAction( 259 virtual void performPluginAction(
255 const WebPluginAction&, 260 const WebPluginAction&,
256 const WebPoint&); 261 const WebPoint&);
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 WebCore::IntSize minAutoSize() const 444 WebCore::IntSize minAutoSize() const
440 { 445 {
441 return m_minAutoSize; 446 return m_minAutoSize;
442 } 447 }
443 448
444 WebCore::IntSize maxAutoSize() const 449 WebCore::IntSize maxAutoSize() const
445 { 450 {
446 return m_maxAutoSize; 451 return m_maxAutoSize;
447 } 452 }
448 453
449 void updatePageDefinedPageScaleConstraints(const WebCore::ViewportDescriptio n&); 454 void updateMainFrameLayoutSize();
455 void updatePageDefinedViewportConstraints(const WebCore::ViewportDescription &);
450 456
451 // Start a system drag and drop operation. 457 // Start a system drag and drop operation.
452 void startDragging( 458 void startDragging(
453 WebCore::Frame*, 459 WebCore::Frame*,
454 const WebDragData& dragData, 460 const WebDragData& dragData,
455 WebDragOperationsMask mask, 461 WebDragOperationsMask mask,
456 const WebImage& dragImage, 462 const WebImage& dragImage,
457 const WebPoint& dragImageOffset); 463 const WebPoint& dragImageOffset);
458 464
459 void autofillPopupDidHide() 465 void autofillPopupDidHide()
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 inline WebViewImpl* toWebViewImpl(WebView* webView) 839 inline WebViewImpl* toWebViewImpl(WebView* webView)
834 { 840 {
835 // We have no ways to check if the specified WebView is an instance of 841 // We have no ways to check if the specified WebView is an instance of
836 // WebViewImpl because WebViewImpl is the only implementation of WebView. 842 // WebViewImpl because WebViewImpl is the only implementation of WebView.
837 return static_cast<WebViewImpl*>(webView); 843 return static_cast<WebViewImpl*>(webView);
838 } 844 }
839 845
840 } // namespace WebKit 846 } // namespace WebKit
841 847
842 #endif 848 #endif
OLDNEW
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698