| OLD | NEW |
| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class BrowserControls; | 43 class BrowserControls; |
| 44 class ChromeClient; | 44 class ChromeClient; |
| 45 class ConsoleMessageStorage; | 45 class ConsoleMessageStorage; |
| 46 class EventHandlerRegistry; | 46 class EventHandlerRegistry; |
| 47 class OverscrollController; | 47 class OverscrollController; |
| 48 class Page; | 48 class Page; |
| 49 struct PageScaleConstraints; | 49 struct PageScaleConstraints; |
| 50 class PageScaleConstraintsSet; | 50 class PageScaleConstraintsSet; |
| 51 class TopDocumentRootScrollerController; | 51 class TopDocumentRootScrollerController; |
| 52 class UseCounter; | |
| 53 class VisualViewport; | 52 class VisualViewport; |
| 54 | 53 |
| 55 // FrameHost is the set of global data shared between multiple frames | 54 // FrameHost is the set of global data shared between multiple frames |
| 56 // and is provided by the embedder to each frame when created. | 55 // and is provided by the embedder to each frame when created. |
| 57 // FrameHost currently corresponds to the Page object in core/page | 56 // FrameHost currently corresponds to the Page object in core/page |
| 58 // however the concept of a Page is moving up out of Blink. | 57 // however the concept of a Page is moving up out of Blink. |
| 59 // In an out-of-process iframe world, a single Page may have | 58 // In an out-of-process iframe world, a single Page may have |
| 60 // multiple frames in different process, thus Page becomes a | 59 // multiple frames in different process, thus Page becomes a |
| 61 // browser-level concept and Blink core/ only knows about its LocalFrame (and | 60 // browser-level concept and Blink core/ only knows about its LocalFrame (and |
| 62 // FrameHost). Separating Page from the rest of core/ through this indirection | 61 // FrameHost). Separating Page from the rest of core/ through this indirection |
| 63 // allows us to slowly refactor Page without breaking the rest of core. | 62 // allows us to slowly refactor Page without breaking the rest of core. |
| 64 // TODO(sashab): Merge FrameHost back into Page. crbug.com/688614 | 63 // TODO(sashab): Merge FrameHost back into Page. crbug.com/688614 |
| 65 class CORE_EXPORT FrameHost final | 64 class CORE_EXPORT FrameHost final |
| 66 : public GarbageCollectedFinalized<FrameHost> { | 65 : public GarbageCollectedFinalized<FrameHost> { |
| 67 WTF_MAKE_NONCOPYABLE(FrameHost); | 66 WTF_MAKE_NONCOPYABLE(FrameHost); |
| 68 | 67 |
| 69 public: | 68 public: |
| 70 static FrameHost* create(Page&); | 69 static FrameHost* create(Page&); |
| 71 ~FrameHost(); | 70 ~FrameHost(); |
| 72 | 71 |
| 73 Page& page(); | 72 Page& page(); |
| 74 const Page& page() const; | 73 const Page& page() const; |
| 75 | 74 |
| 76 UseCounter& useCounter(); | |
| 77 const UseCounter& useCounter() const; | |
| 78 | |
| 79 // Corresponds to pixel density of the device where this Page is | 75 // Corresponds to pixel density of the device where this Page is |
| 80 // being displayed. In multi-monitor setups this can vary between pages. | 76 // being displayed. In multi-monitor setups this can vary between pages. |
| 81 // This value does not account for Page zoom, use LocalFrame::devicePixelRatio | 77 // This value does not account for Page zoom, use LocalFrame::devicePixelRatio |
| 82 // instead. This is to be deprecated. Use this with caution. | 78 // instead. This is to be deprecated. Use this with caution. |
| 83 // 1) If you need to scale the content per device scale factor, this is still | 79 // 1) If you need to scale the content per device scale factor, this is still |
| 84 // valid. In use-zoom-for-dsf mode, this is always 1, and will be remove | 80 // valid. In use-zoom-for-dsf mode, this is always 1, and will be remove |
| 85 // when transition is complete. | 81 // when transition is complete. |
| 86 // 2) If you want to compute the device related measure (such as device pixel | 82 // 2) If you want to compute the device related measure (such as device pixel |
| 87 // height, or the scale factor for drag image), use | 83 // height, or the scale factor for drag image), use |
| 88 // ChromeClient::screenInfo() instead. | 84 // ChromeClient::screenInfo() instead. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 const Member<TopDocumentRootScrollerController> | 135 const Member<TopDocumentRootScrollerController> |
| 140 m_globalRootScrollerController; | 136 m_globalRootScrollerController; |
| 141 | 137 |
| 142 AtomicString m_overrideEncoding; | 138 AtomicString m_overrideEncoding; |
| 143 int m_subframeCount; | 139 int m_subframeCount; |
| 144 }; | 140 }; |
| 145 | 141 |
| 146 } // namespace blink | 142 } // namespace blink |
| 147 | 143 |
| 148 #endif // FrameHost_h | 144 #endif // FrameHost_h |
| OLD | NEW |