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

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, 3 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
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 setLayoutSize(const WebSize&);
245
246 // TODO: Remove once Chrome-side changes land
244 virtual void enableFixedLayoutMode(bool enable); 247 virtual void enableFixedLayoutMode(bool enable);
245 virtual WebSize fixedLayoutSize() const;
246 virtual void setFixedLayoutSize(const WebSize&); 248 virtual void setFixedLayoutSize(const WebSize&);
249
247 virtual void enableAutoResizeMode( 250 virtual void enableAutoResizeMode(
248 const WebSize& minSize, 251 const WebSize& minSize,
249 const WebSize& maxSize); 252 const WebSize& maxSize);
250 virtual void disableAutoResizeMode(); 253 virtual void disableAutoResizeMode();
251 virtual void performMediaPlayerAction( 254 virtual void performMediaPlayerAction(
252 const WebMediaPlayerAction& action, 255 const WebMediaPlayerAction& action,
253 const WebPoint& location); 256 const WebPoint& location);
254 virtual void performPluginAction( 257 virtual void performPluginAction(
255 const WebPluginAction&, 258 const WebPluginAction&,
256 const WebPoint&); 259 const WebPoint&);
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 inline WebViewImpl* toWebViewImpl(WebView* webView) 834 inline WebViewImpl* toWebViewImpl(WebView* webView)
832 { 835 {
833 // We have no ways to check if the specified WebView is an instance of 836 // We have no ways to check if the specified WebView is an instance of
834 // WebViewImpl because WebViewImpl is the only implementation of WebView. 837 // WebViewImpl because WebViewImpl is the only implementation of WebView.
835 return static_cast<WebViewImpl*>(webView); 838 return static_cast<WebViewImpl*>(webView);
836 } 839 }
837 840
838 } // namespace WebKit 841 } // namespace WebKit
839 842
840 #endif 843 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698