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

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

Issue 1648593002: Revert of Add deprecation message for -webkit-background-composite (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 27 matching lines...) Expand all
38 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
39 #include "wtf/Allocator.h" 39 #include "wtf/Allocator.h"
40 #include "wtf/Noncopyable.h" 40 #include "wtf/Noncopyable.h"
41 #include "wtf/OwnPtr.h" 41 #include "wtf/OwnPtr.h"
42 #include "wtf/PassOwnPtr.h" 42 #include "wtf/PassOwnPtr.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ChromeClient; 46 class ChromeClient;
47 class ConsoleMessageStorage; 47 class ConsoleMessageStorage;
48 class Deprecation;
49 class EventHandlerRegistry; 48 class EventHandlerRegistry;
50 class Page; 49 class Page;
51 class PageScaleConstraintsSet; 50 class PageScaleConstraintsSet;
52 class Settings; 51 class Settings;
53 class UseCounter; 52 class UseCounter;
54 class Visitor; 53 class Visitor;
55 54
56 // FrameHost is the set of global data shared between multiple frames 55 // FrameHost is the set of global data shared between multiple frames
57 // and is provided by the embedder to each frame when created. 56 // and is provided by the embedder to each frame when created.
58 // FrameHost currently corresponds to the Page object in core/page 57 // FrameHost currently corresponds to the Page object in core/page
59 // however the concept of a Page is moving up out of Blink. 58 // however the concept of a Page is moving up out of Blink.
60 // In an out-of-process iframe world, a single Page may have 59 // In an out-of-process iframe world, a single Page may have
61 // multiple frames in different process, thus Page becomes a 60 // multiple frames in different process, thus Page becomes a
62 // browser-level concept and Blink core/ only knows about its LocalFrame (and Fr ameHost). 61 // browser-level concept and Blink core/ only knows about its LocalFrame (and Fr ameHost).
63 // Separating Page from the rest of core/ through this indirection 62 // Separating Page from the rest of core/ through this indirection
64 // allows us to slowly refactor Page without breaking the rest of core. 63 // allows us to slowly refactor Page without breaking the rest of core.
65 class CORE_EXPORT FrameHost final : public NoBaseWillBeGarbageCollectedFinalized <FrameHost> { 64 class CORE_EXPORT FrameHost final : public NoBaseWillBeGarbageCollectedFinalized <FrameHost> {
66 WTF_MAKE_NONCOPYABLE(FrameHost); USING_FAST_MALLOC_WILL_BE_REMOVED(FrameHost ); 65 WTF_MAKE_NONCOPYABLE(FrameHost); USING_FAST_MALLOC_WILL_BE_REMOVED(FrameHost );
67 public: 66 public:
68 static PassOwnPtrWillBeRawPtr<FrameHost> create(Page&); 67 static PassOwnPtrWillBeRawPtr<FrameHost> create(Page&);
69 ~FrameHost(); 68 ~FrameHost();
70 69
71 // Careful: This function will eventually be removed. 70 // Careful: This function will eventually be removed.
72 Page& page() const { return *m_page; } 71 Page& page() const { return *m_page; }
73 Settings& settings() const; 72 Settings& settings() const;
74 ChromeClient& chromeClient() const; 73 ChromeClient& chromeClient() const;
75 UseCounter& useCounter() const; 74 UseCounter& useCounter() const;
76 Deprecation& deprecation() const;
77 75
78 // Corresponds to pixel density of the device where this Page is 76 // Corresponds to pixel density of the device where this Page is
79 // being displayed. In multi-monitor setups this can vary between pages. 77 // being displayed. In multi-monitor setups this can vary between pages.
80 // This value does not account for Page zoom, use LocalFrame::devicePixelRat io instead. 78 // This value does not account for Page zoom, use LocalFrame::devicePixelRat io instead.
81 float deviceScaleFactor() const; 79 float deviceScaleFactor() const;
82 80
83 TopControls& topControls() const; 81 TopControls& topControls() const;
84 VisualViewport& visualViewport() const; 82 VisualViewport& visualViewport() const;
85 PageScaleConstraintsSet& pageScaleConstraintsSet() const; 83 PageScaleConstraintsSet& pageScaleConstraintsSet() const;
86 EventHandlerRegistry& eventHandlerRegistry() const; 84 EventHandlerRegistry& eventHandlerRegistry() const;
(...skipping 27 matching lines...) Expand all
114 const OwnPtrWillBeMember<EventHandlerRegistry> m_eventHandlerRegistry; 112 const OwnPtrWillBeMember<EventHandlerRegistry> m_eventHandlerRegistry;
115 const OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage; 113 const OwnPtrWillBeMember<ConsoleMessageStorage> m_consoleMessageStorage;
116 114
117 AtomicString m_overrideEncoding; 115 AtomicString m_overrideEncoding;
118 int m_subframeCount; 116 int m_subframeCount;
119 }; 117 };
120 118
121 } // namespace blink 119 } // namespace blink
122 120
123 #endif // FrameHost_h 121 #endif // FrameHost_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Deprecation.cpp ('k') | third_party/WebKit/Source/core/frame/FrameHost.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698