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

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: 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 virtual void resetScrollAndScaleState(); 234 virtual void resetScrollAndScaleState();
235 virtual void setIgnoreViewportTagScaleLimits(bool); 235 virtual void setIgnoreViewportTagScaleLimits(bool);
236 virtual WebSize contentsPreferredMinimumSize(); 236 virtual WebSize contentsPreferredMinimumSize();
237 237
238 virtual float deviceScaleFactor() const; 238 virtual float deviceScaleFactor() const;
239 virtual void setDeviceScaleFactor(float); 239 virtual void setDeviceScaleFactor(float);
240 virtual bool isFixedLayoutModeEnabled() const; 240 virtual bool isFixedLayoutModeEnabled() const;
241 virtual void enableFixedLayoutMode(bool enable); 241 virtual void enableFixedLayoutMode(bool enable);
242 virtual WebSize fixedLayoutSize() const; 242 virtual WebSize fixedLayoutSize() const;
243 virtual void setFixedLayoutSize(const WebSize&); 243 virtual void setFixedLayoutSize(const WebSize&);
244 virtual void setForceFixedLayoutSizeToEqualSize(bool);
244 virtual void enableAutoResizeMode( 245 virtual void enableAutoResizeMode(
245 const WebSize& minSize, 246 const WebSize& minSize,
246 const WebSize& maxSize); 247 const WebSize& maxSize);
247 virtual void disableAutoResizeMode(); 248 virtual void disableAutoResizeMode();
248 virtual void performMediaPlayerAction( 249 virtual void performMediaPlayerAction(
249 const WebMediaPlayerAction& action, 250 const WebMediaPlayerAction& action,
250 const WebPoint& location); 251 const WebPoint& location);
251 virtual void performPluginAction( 252 virtual void performPluginAction(
252 const WebPluginAction&, 253 const WebPluginAction&,
253 const WebPoint&); 254 const WebPoint&);
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 WebPasswordGeneratorClient* m_passwordGeneratorClient; 661 WebPasswordGeneratorClient* m_passwordGeneratorClient;
661 662
662 ChromeClientImpl m_chromeClientImpl; 663 ChromeClientImpl m_chromeClientImpl;
663 ContextMenuClientImpl m_contextMenuClientImpl; 664 ContextMenuClientImpl m_contextMenuClientImpl;
664 DragClientImpl m_dragClientImpl; 665 DragClientImpl m_dragClientImpl;
665 EditorClientImpl m_editorClientImpl; 666 EditorClientImpl m_editorClientImpl;
666 InspectorClientImpl m_inspectorClientImpl; 667 InspectorClientImpl m_inspectorClientImpl;
667 BackForwardClientImpl m_backForwardClientImpl; 668 BackForwardClientImpl m_backForwardClientImpl;
668 669
669 WebSize m_size; 670 WebSize m_size;
671 bool m_forceFixedLayoutSizeToEqualSize;
670 // If true, automatically resize the render view around its content. 672 // If true, automatically resize the render view around its content.
671 bool m_shouldAutoResize; 673 bool m_shouldAutoResize;
672 // The lower bound on the size when auto-resizing. 674 // The lower bound on the size when auto-resizing.
673 WebCore::IntSize m_minAutoSize; 675 WebCore::IntSize m_minAutoSize;
674 // The upper bound on the size when auto-resizing. 676 // The upper bound on the size when auto-resizing.
675 WebCore::IntSize m_maxAutoSize; 677 WebCore::IntSize m_maxAutoSize;
676 678
677 OwnPtr<WebCore::Page> m_page; 679 OwnPtr<WebCore::Page> m_page;
678 680
679 // This flag is set when a new navigation is detected. It is used to satisfy 681 // This flag is set when a new navigation is detected. It is used to satisfy
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 inline WebViewImpl* toWebViewImpl(WebView* webView) 844 inline WebViewImpl* toWebViewImpl(WebView* webView)
843 { 845 {
844 // We have no ways to check if the specified WebView is an instance of 846 // We have no ways to check if the specified WebView is an instance of
845 // WebViewImpl because WebViewImpl is the only implementation of WebView. 847 // WebViewImpl because WebViewImpl is the only implementation of WebView.
846 return static_cast<WebViewImpl*>(webView); 848 return static_cast<WebViewImpl*>(webView);
847 } 849 }
848 850
849 } // namespace WebKit 851 } // namespace WebKit
850 852
851 #endif 853 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698