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

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

Issue 910983005: Decouple performance() from LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
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 DOMWindow_h 5 #ifndef DOMWindow_h
6 #define DOMWindow_h 6 #define DOMWindow_h
7 7
8 #include "core/events/EventTarget.h" 8 #include "core/events/EventTarget.h"
9 #include "core/frame/DOMWindowBase64.h" 9 #include "core/frame/DOMWindowBase64.h"
10 #include "core/frame/Location.h" 10 #include "core/frame/Location.h"
(...skipping 11 matching lines...) Expand all
22 class Console; 22 class Console;
23 class DOMSelection; 23 class DOMSelection;
24 class DOMWindowCSS; 24 class DOMWindowCSS;
25 class Document; 25 class Document;
26 class Element; 26 class Element;
27 class Frame; 27 class Frame;
28 class History; 28 class History;
29 class LocalDOMWindow; 29 class LocalDOMWindow;
30 class MediaQueryList; 30 class MediaQueryList;
31 class Navigator; 31 class Navigator;
32 class Performance;
33 class RequestAnimationFrameCallback; 32 class RequestAnimationFrameCallback;
34 class Screen; 33 class Screen;
35 class ScrollToOptions; 34 class ScrollToOptions;
36 class SerializedScriptValue; 35 class SerializedScriptValue;
37 class Storage; 36 class Storage;
38 class StyleMedia; 37 class StyleMedia;
39 38
40 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; 39 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray;
41 40
42 class DOMWindow : public EventTargetWithInlineData, public RefCountedWillBeNoBas e<DOMWindow>, public DOMWindowBase64 { 41 class DOMWindow : public EventTargetWithInlineData, public RefCountedWillBeNoBas e<DOMWindow>, public DOMWindowBase64 {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 114
116 virtual ApplicationCache* applicationCache() const = 0; 115 virtual ApplicationCache* applicationCache() const = 0;
117 116
118 // This is the interface orientation in degrees. Some examples are: 117 // This is the interface orientation in degrees. Some examples are:
119 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 118 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
120 // 90 is when rotated counter clockwise. 119 // 90 is when rotated counter clockwise.
121 virtual int orientation() const = 0; 120 virtual int orientation() const = 0;
122 121
123 virtual Console* console() const = 0; 122 virtual Console* console() const = 0;
124 123
125 virtual Performance* performance() const = 0;
126
127 virtual DOMWindowCSS* css() const = 0; 124 virtual DOMWindowCSS* css() const = 0;
128 125
129 virtual DOMSelection* getSelection() = 0; 126 virtual DOMSelection* getSelection() = 0;
130 127
131 virtual void focus(ExecutionContext*) = 0; 128 virtual void focus(ExecutionContext*) = 0;
132 virtual void blur() = 0; 129 virtual void blur() = 0;
133 virtual void close(ExecutionContext*) = 0; 130 virtual void close(ExecutionContext*) = 0;
134 virtual void print() = 0; 131 virtual void print() = 0;
135 virtual void stop() = 0; 132 virtual void stop() = 0;
136 133
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 213 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
217 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 214 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
218 215
219 private: 216 private:
220 mutable RefPtrWillBeMember<Location> m_location; 217 mutable RefPtrWillBeMember<Location> m_location;
221 }; 218 };
222 219
223 } // namespace blink 220 } // namespace blink
224 221
225 #endif // DOMWindow_h 222 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698