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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameHost.h

Issue 2720723004: Remove FrameHost setDefaultPageScaleLimits/UserAgentPageScaleConstraints (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « no previous file | third_party/WebKit/Source/core/frame/FrameHost.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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 27 matching lines...) Expand all
38 #include "wtf/text/AtomicString.h" 38 #include "wtf/text/AtomicString.h"
39 #include <memory> 39 #include <memory>
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class BrowserControls; 43 class BrowserControls;
44 class ConsoleMessageStorage; 44 class ConsoleMessageStorage;
45 class EventHandlerRegistry; 45 class EventHandlerRegistry;
46 class OverscrollController; 46 class OverscrollController;
47 class Page; 47 class Page;
48 struct PageScaleConstraints;
49 class PageScaleConstraintsSet; 48 class PageScaleConstraintsSet;
50 class TopDocumentRootScrollerController; 49 class TopDocumentRootScrollerController;
51 class VisualViewport; 50 class VisualViewport;
52 51
53 // FrameHost is the set of global data shared between multiple frames 52 // FrameHost is the set of global data shared between multiple frames
54 // and is provided by the embedder to each frame when created. 53 // and is provided by the embedder to each frame when created.
55 // FrameHost currently corresponds to the Page object in core/page 54 // FrameHost currently corresponds to the Page object in core/page
56 // however the concept of a Page is moving up out of Blink. 55 // however the concept of a Page is moving up out of Blink.
57 // In an out-of-process iframe world, a single Page may have 56 // In an out-of-process iframe world, a single Page may have
58 // multiple frames in different process, thus Page becomes a 57 // multiple frames in different process, thus Page becomes a
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // recursive frameset pages can quickly bring the program to its knees 97 // recursive frameset pages can quickly bring the program to its knees
99 // with exponential growth in the number of frames. 98 // with exponential growth in the number of frames.
100 static const int maxNumberOfFrames = 1000; 99 static const int maxNumberOfFrames = 1000;
101 void incrementSubframeCount() { ++m_subframeCount; } 100 void incrementSubframeCount() { ++m_subframeCount; }
102 void decrementSubframeCount() { 101 void decrementSubframeCount() {
103 ASSERT(m_subframeCount); 102 ASSERT(m_subframeCount);
104 --m_subframeCount; 103 --m_subframeCount;
105 } 104 }
106 int subframeCount() const; 105 int subframeCount() const;
107 106
108 void setDefaultPageScaleLimits(float minScale, float maxScale);
109 void setUserAgentPageScaleConstraints(
110 const PageScaleConstraints& newConstraints);
111
112 private: 107 private:
113 explicit FrameHost(Page&); 108 explicit FrameHost(Page&);
114 109
115 const Member<Page> m_page; 110 const Member<Page> m_page;
116 const Member<BrowserControls> m_browserControls; 111 const Member<BrowserControls> m_browserControls;
117 const Member<VisualViewport> m_visualViewport; 112 const Member<VisualViewport> m_visualViewport;
118 const Member<OverscrollController> m_overscrollController; 113 const Member<OverscrollController> m_overscrollController;
119 const Member<EventHandlerRegistry> m_eventHandlerRegistry; 114 const Member<EventHandlerRegistry> m_eventHandlerRegistry;
120 const Member<ConsoleMessageStorage> m_consoleMessageStorage; 115 const Member<ConsoleMessageStorage> m_consoleMessageStorage;
121 const Member<TopDocumentRootScrollerController> 116 const Member<TopDocumentRootScrollerController>
122 m_globalRootScrollerController; 117 m_globalRootScrollerController;
123 118
124 AtomicString m_overrideEncoding; 119 AtomicString m_overrideEncoding;
125 int m_subframeCount; 120 int m_subframeCount;
126 }; 121 };
127 122
128 } // namespace blink 123 } // namespace blink
129 124
130 #endif // FrameHost_h 125 #endif // FrameHost_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698