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

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

Issue 23441020: Make it possibe to lock the fixedLayoutSize (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add one more test 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 | Annotate | Revision Log
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual bool isFixedLayoutModeEnabled() const;
244 virtual void enableFixedLayoutMode(bool enable); 244 virtual void enableFixedLayoutMode(bool enable);
245 virtual WebSize fixedLayoutSize() const; 245 virtual WebSize fixedLayoutSize() const;
246 virtual void setFixedLayoutSize(const WebSize&); 246 virtual void setFixedLayoutSize(const WebSize&);
247 virtual void setFixedLayoutSizeLock(bool);
248 bool fixedLayoutSizeLock() const;
247 virtual void enableAutoResizeMode( 249 virtual void enableAutoResizeMode(
248 const WebSize& minSize, 250 const WebSize& minSize,
249 const WebSize& maxSize); 251 const WebSize& maxSize);
250 virtual void disableAutoResizeMode(); 252 virtual void disableAutoResizeMode();
251 virtual void performMediaPlayerAction( 253 virtual void performMediaPlayerAction(
252 const WebMediaPlayerAction& action, 254 const WebMediaPlayerAction& action,
253 const WebPoint& location); 255 const WebPoint& location);
254 virtual void performPluginAction( 256 virtual void performPluginAction(
255 const WebPluginAction&, 257 const WebPluginAction&,
256 const WebPoint&); 258 const WebPoint&);
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 inline WebViewImpl* toWebViewImpl(WebView* webView) 833 inline WebViewImpl* toWebViewImpl(WebView* webView)
832 { 834 {
833 // We have no ways to check if the specified WebView is an instance of 835 // We have no ways to check if the specified WebView is an instance of
834 // WebViewImpl because WebViewImpl is the only implementation of WebView. 836 // WebViewImpl because WebViewImpl is the only implementation of WebView.
835 return static_cast<WebViewImpl*>(webView); 837 return static_cast<WebViewImpl*>(webView);
836 } 838 }
837 839
838 } // namespace WebKit 840 } // namespace WebKit
839 841
840 #endif 842 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698