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

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

Issue 2393313002: reflow comments in core/frame (Closed)
Patch Set: tweak Created 4 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class UseCounter; 54 class UseCounter;
55 class Visitor; 55 class Visitor;
56 class VisualViewport; 56 class VisualViewport;
57 57
58 // FrameHost is the set of global data shared between multiple frames 58 // FrameHost is the set of global data shared between multiple frames
59 // and is provided by the embedder to each frame when created. 59 // and is provided by the embedder to each frame when created.
60 // FrameHost currently corresponds to the Page object in core/page 60 // FrameHost currently corresponds to the Page object in core/page
61 // however the concept of a Page is moving up out of Blink. 61 // however the concept of a Page is moving up out of Blink.
62 // In an out-of-process iframe world, a single Page may have 62 // In an out-of-process iframe world, a single Page may have
63 // multiple frames in different process, thus Page becomes a 63 // multiple frames in different process, thus Page becomes a
64 // browser-level concept and Blink core/ only knows about its LocalFrame (and Fr ameHost). 64 // browser-level concept and Blink core/ only knows about its LocalFrame (and
65 // Separating Page from the rest of core/ through this indirection 65 // FrameHost). Separating Page from the rest of core/ through this indirection
66 // allows us to slowly refactor Page without breaking the rest of core. 66 // allows us to slowly refactor Page without breaking the rest of core.
67 class CORE_EXPORT FrameHost final 67 class CORE_EXPORT FrameHost final
68 : public GarbageCollectedFinalized<FrameHost> { 68 : public GarbageCollectedFinalized<FrameHost> {
69 WTF_MAKE_NONCOPYABLE(FrameHost); 69 WTF_MAKE_NONCOPYABLE(FrameHost);
70 70
71 public: 71 public:
72 static FrameHost* create(Page&); 72 static FrameHost* create(Page&);
73 ~FrameHost(); 73 ~FrameHost();
74 74
75 // Careful: This function will eventually be removed. 75 // Careful: This function will eventually be removed.
76 Page& page(); 76 Page& page();
77 const Page& page() const; 77 const Page& page() const;
78 78
79 Settings& settings(); 79 Settings& settings();
80 const Settings& settings() const; 80 const Settings& settings() const;
81 81
82 ChromeClient& chromeClient(); 82 ChromeClient& chromeClient();
83 const ChromeClient& chromeClient() const; 83 const ChromeClient& chromeClient() const;
84 84
85 UseCounter& useCounter(); 85 UseCounter& useCounter();
86 const UseCounter& useCounter() const; 86 const UseCounter& useCounter() const;
87 87
88 Deprecation& deprecation(); 88 Deprecation& deprecation();
89 const Deprecation& deprecation() const; 89 const Deprecation& deprecation() const;
90 90
91 // Corresponds to pixel density of the device where this Page is 91 // Corresponds to pixel density of the device where this Page is
92 // being displayed. In multi-monitor setups this can vary between pages. 92 // being displayed. In multi-monitor setups this can vary between pages.
93 // This value does not account for Page zoom, use LocalFrame::devicePixelRatio instead. 93 // This value does not account for Page zoom, use LocalFrame::devicePixelRatio
94 // This is to be deprecated. Use this with caution. 94 // instead. This is to be deprecated. Use this with caution.
95 // 1) If you need to scale the content per device scale factor, this is still valid. 95 // 1) If you need to scale the content per device scale factor, this is still
96 // In use-zoom-for-dsf mode, this is always 1, and will be remove when tran sition is complete. 96 // valid. In use-zoom-for-dsf mode, this is always 1, and will be remove
97 // 2) If you want to compute the device related measure (such as device pixel height, or the scale factor for drag image), 97 // when transition is complete.
98 // use ChromeClient::screenInfo() instead. 98 // 2) If you want to compute the device related measure (such as device pixel
99 // height, or the scale factor for drag image), use
100 // ChromeClient::screenInfo() instead.
99 float deviceScaleFactorDeprecated() const; 101 float deviceScaleFactorDeprecated() const;
100 102
101 TopControls& topControls(); 103 TopControls& topControls();
102 const TopControls& topControls() const; 104 const TopControls& topControls() const;
103 105
104 OverscrollController& overscrollController(); 106 OverscrollController& overscrollController();
105 const OverscrollController& overscrollController() const; 107 const OverscrollController& overscrollController() const;
106 108
107 VisualViewport& visualViewport(); 109 VisualViewport& visualViewport();
108 const VisualViewport& visualViewport() const; 110 const VisualViewport& visualViewport() const;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 const Member<TopDocumentRootScrollerController> 151 const Member<TopDocumentRootScrollerController>
150 m_globalRootScrollerController; 152 m_globalRootScrollerController;
151 153
152 AtomicString m_overrideEncoding; 154 AtomicString m_overrideEncoding;
153 int m_subframeCount; 155 int m_subframeCount;
154 }; 156 };
155 157
156 } // namespace blink 158 } // namespace blink
157 159
158 #endif // FrameHost_h 160 #endif // FrameHost_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.h ('k') | third_party/WebKit/Source/core/frame/FrameSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698