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

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

Issue 879913003: Use IntRect instead of FloatRect for window positions and sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added FIXME comments Created 5 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
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/frame/RemoteDOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void print() override; 65 void print() override;
66 void stop() override; 66 void stop() override;
67 void alert(const String& message = String()) override; 67 void alert(const String& message = String()) override;
68 bool confirm(const String& message) override; 68 bool confirm(const String& message) override;
69 String prompt(const String& message, const String& defaultValue) override; 69 String prompt(const String& message, const String& defaultValue) override;
70 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const override; 70 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const override;
71 void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAuto) const override; 71 void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAuto) const override;
72 void scrollBy(const ScrollToOptions&) const override; 72 void scrollBy(const ScrollToOptions&) const override;
73 void scrollTo(double x, double y) const override; 73 void scrollTo(double x, double y) const override;
74 void scrollTo(const ScrollToOptions&) const override; 74 void scrollTo(const ScrollToOptions&) const override;
75 void moveBy(float x, float y) const override; 75 void moveBy(int x, int y) const override;
76 void moveTo(float x, float y) const override; 76 void moveTo(int x, int y, bool hasX, bool hasY) const override;
77 void resizeBy(float x, float y) const override; 77 void resizeBy(int x, int y) const override;
78 void resizeTo(float width, float height) const override; 78 void resizeTo(int width, int height, bool hasWidth, bool hasHeight) const ov erride;
79 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) override; 79 PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) override;
80 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const override; 80 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const String& pseudoElt) const override;
81 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override; 81 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin g& pseudoElt) const override;
82 int requestAnimationFrame(RequestAnimationFrameCallback*) override; 82 int requestAnimationFrame(RequestAnimationFrameCallback*) override;
83 int webkitRequestAnimationFrame(RequestAnimationFrameCallback*) override; 83 int webkitRequestAnimationFrame(RequestAnimationFrameCallback*) override;
84 void cancelAnimationFrame(int id) override; 84 void cancelAnimationFrame(int id) override;
85 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&) ov erride; 85 void postMessage(PassRefPtr<SerializedScriptValue> message, const MessagePor tArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&) ov erride;
86 String sanitizedCrossDomainAccessErrorMessage(LocalDOMWindow* callingWindow) override; 86 String sanitizedCrossDomainAccessErrorMessage(LocalDOMWindow* callingWindow) override;
87 String crossDomainAccessErrorMessage(LocalDOMWindow* callingWindow) override ; 87 String crossDomainAccessErrorMessage(LocalDOMWindow* callingWindow) override ;
88 88
89 private: 89 private:
90 explicit RemoteDOMWindow(RemoteFrame&); 90 explicit RemoteDOMWindow(RemoteFrame&);
91 91
92 RawPtrWillBeMember<RemoteFrame> m_frame; 92 RawPtrWillBeMember<RemoteFrame> m_frame;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif // DOMWindow_h 97 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalDOMWindow.cpp ('k') | Source/core/frame/RemoteDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698