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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RemoteDOMWindow_h 5 #ifndef RemoteDOMWindow_h
6 #define RemoteDOMWindow_h 6 #define RemoteDOMWindow_h
7 7
8 #include "core/frame/DOMWindow.h" 8 #include "core/frame/DOMWindow.h"
9 #include "core/frame/RemoteFrame.h" 9 #include "core/frame/RemoteFrame.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class RemoteDOMWindow final : public DOMWindow { 13 class RemoteDOMWindow final : public DOMWindow {
14 public: 14 public:
15 static PassRefPtrWillBeRawPtr<RemoteDOMWindow> create(RemoteFrame& frame) 15 static RawPtr<RemoteDOMWindow> create(RemoteFrame& frame)
16 { 16 {
17 return adoptRefWillBeNoop(new RemoteDOMWindow(frame)); 17 return new RemoteDOMWindow(frame);
18 } 18 }
19 19
20 // EventTarget overrides: 20 // EventTarget overrides:
21 ExecutionContext* getExecutionContext() const override; 21 ExecutionContext* getExecutionContext() const override;
22 22
23 // DOMWindow overrides: 23 // DOMWindow overrides:
24 DECLARE_VIRTUAL_TRACE(); 24 DECLARE_VIRTUAL_TRACE();
25 bool isRemoteDOMWindow() const override { return true; } 25 bool isRemoteDOMWindow() const override { return true; }
26 RemoteFrame* frame() const override; 26 RemoteFrame* frame() const override;
27 Screen* screen() const override; 27 Screen* screen() const override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 String prompt(const String& message, const String& defaultValue) override; 63 String prompt(const String& message, const String& defaultValue) override;
64 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const override; 64 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const override;
65 void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAuto) const override; 65 void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAuto) const override;
66 void scrollBy(const ScrollToOptions&) const override; 66 void scrollBy(const ScrollToOptions&) const override;
67 void scrollTo(double x, double y) const override; 67 void scrollTo(double x, double y) const override;
68 void scrollTo(const ScrollToOptions&) const override; 68 void scrollTo(const ScrollToOptions&) const override;
69 void moveBy(int x, int y) const override; 69 void moveBy(int x, int y) const override;
70 void moveTo(int x, int y) const override; 70 void moveTo(int x, int y) const override;
71 void resizeBy(int x, int y) const override; 71 void resizeBy(int x, int y) const override;
72 void resizeTo(int width, int height) const override; 72 void resizeTo(int width, int height) const override;
73 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) override; 73 RawPtr<MediaQueryList> matchMedia(const String&) override;
74 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const override; 74 RawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoE lt) const override;
75 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override; 75 RawPtr<CSSRuleList> getMatchedCSSRules(Element*, const String& pseudoElt) co nst override;
76 int requestAnimationFrame(FrameRequestCallback*) override; 76 int requestAnimationFrame(FrameRequestCallback*) override;
77 int webkitRequestAnimationFrame(FrameRequestCallback*) override; 77 int webkitRequestAnimationFrame(FrameRequestCallback*) override;
78 void cancelAnimationFrame(int id) override; 78 void cancelAnimationFrame(int id) override;
79 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride; 79 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&) ove rride;
80 void cancelIdleCallback(int id) override; 80 void cancelIdleCallback(int id) override;
81 81
82 void frameDetached(); 82 void frameDetached();
83 83
84 private: 84 private:
85 explicit RemoteDOMWindow(RemoteFrame&); 85 explicit RemoteDOMWindow(RemoteFrame&);
86 86
87 RawPtrWillBeMember<RemoteFrame> m_frame; 87 Member<RemoteFrame> m_frame;
88 }; 88 };
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 #endif // DOMWindow_h 92 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698