Chromium Code Reviews| 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 23 matching lines...) Expand all Loading... | |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
| 37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
| 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 ChromeClient; | |
|
sashab
2017/02/28 04:21:32
This is funny... This only broke a presubmit check
| |
| 45 class ConsoleMessageStorage; | 44 class ConsoleMessageStorage; |
| 46 class EventHandlerRegistry; | 45 class EventHandlerRegistry; |
| 47 class OverscrollController; | 46 class OverscrollController; |
| 48 class Page; | 47 class Page; |
| 49 struct PageScaleConstraints; | 48 struct PageScaleConstraints; |
| 50 class PageScaleConstraintsSet; | 49 class PageScaleConstraintsSet; |
| 51 class TopDocumentRootScrollerController; | 50 class TopDocumentRootScrollerController; |
| 52 class VisualViewport; | 51 class VisualViewport; |
| 53 | 52 |
| 54 // FrameHost is the set of global data shared between multiple frames | 53 // FrameHost is the set of global data shared between multiple frames |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 65 : public GarbageCollectedFinalized<FrameHost> { | 64 : public GarbageCollectedFinalized<FrameHost> { |
| 66 WTF_MAKE_NONCOPYABLE(FrameHost); | 65 WTF_MAKE_NONCOPYABLE(FrameHost); |
| 67 | 66 |
| 68 public: | 67 public: |
| 69 static FrameHost* create(Page&); | 68 static FrameHost* create(Page&); |
| 70 ~FrameHost(); | 69 ~FrameHost(); |
| 71 | 70 |
| 72 Page& page(); | 71 Page& page(); |
| 73 const Page& page() const; | 72 const Page& page() const; |
| 74 | 73 |
| 75 // Corresponds to pixel density of the device where this Page is | 74 // See Page::deviceScaleFactorDeprecated. |
| 76 // being displayed. In multi-monitor setups this can vary between pages. | |
| 77 // This value does not account for Page zoom, use LocalFrame::devicePixelRatio | |
| 78 // instead. This is to be deprecated. Use this with caution. | |
| 79 // 1) If you need to scale the content per device scale factor, this is still | |
| 80 // valid. In use-zoom-for-dsf mode, this is always 1, and will be remove | |
| 81 // when transition is complete. | |
| 82 // 2) If you want to compute the device related measure (such as device pixel | |
| 83 // height, or the scale factor for drag image), use | |
| 84 // ChromeClient::screenInfo() instead. | |
| 85 float deviceScaleFactorDeprecated() const; | 75 float deviceScaleFactorDeprecated() const; |
|
haraken
2017/02/28 04:25:08
Why can't we remove this?
sashab
2017/02/28 04:26:16
Doing it in a follow-up patch, to keep the rename
| |
| 86 | 76 |
| 87 BrowserControls& browserControls(); | 77 BrowserControls& browserControls(); |
| 88 const BrowserControls& browserControls() const; | 78 const BrowserControls& browserControls() const; |
| 89 | 79 |
| 90 OverscrollController& overscrollController(); | 80 OverscrollController& overscrollController(); |
| 91 const OverscrollController& overscrollController() const; | 81 const OverscrollController& overscrollController() const; |
| 92 | 82 |
| 93 VisualViewport& visualViewport(); | 83 VisualViewport& visualViewport(); |
| 94 const VisualViewport& visualViewport() const; | 84 const VisualViewport& visualViewport() const; |
| 95 | 85 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 135 const Member<TopDocumentRootScrollerController> | 125 const Member<TopDocumentRootScrollerController> |
| 136 m_globalRootScrollerController; | 126 m_globalRootScrollerController; |
| 137 | 127 |
| 138 AtomicString m_overrideEncoding; | 128 AtomicString m_overrideEncoding; |
| 139 int m_subframeCount; | 129 int m_subframeCount; |
| 140 }; | 130 }; |
| 141 | 131 |
| 142 } // namespace blink | 132 } // namespace blink |
| 143 | 133 |
| 144 #endif // FrameHost_h | 134 #endif // FrameHost_h |
| OLD | NEW |