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

Side by Side Diff: sky/engine/core/frame/LocalDOMWindow.h

Issue 1028243003: Let Dart code running in Sky add events to the trace timeline (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more Created 5 years, 9 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 | « sky/engine/core/core.gni ('k') | sky/engine/core/frame/LocalDOMWindow.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 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class LocalFrame; 60 class LocalFrame;
61 class Location; 61 class Location;
62 class MediaQueryList; 62 class MediaQueryList;
63 class Node; 63 class Node;
64 class Page; 64 class Page;
65 class RequestAnimationFrameCallback; 65 class RequestAnimationFrameCallback;
66 class ScheduledAction; 66 class ScheduledAction;
67 class Screen; 67 class Screen;
68 class ScriptCallStack; 68 class ScriptCallStack;
69 class StyleMedia; 69 class StyleMedia;
70 class Tracing;
70 71
71 enum PageshowEventPersistence { 72 enum PageshowEventPersistence {
72 PageshowEventNotPersisted = 0, 73 PageshowEventNotPersisted = 0,
73 PageshowEventPersisted = 1 74 PageshowEventPersisted = 1
74 }; 75 };
75 76
76 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBackForw ardList }; 77 enum SetLocationLocking { LockHistoryBasedOnGestureState, LockHistoryAndBackForw ardList };
77 78
78 class LocalDOMWindow final : public RefCounted<LocalDOMWindow>, public EventTarg etWithInlineData, public DOMWindowBase64, public FrameDestructionObserver, publi c Supplementable<LocalDOMWindow>, public LifecycleContext<LocalDOMWindow> { 79 class LocalDOMWindow final : public RefCounted<LocalDOMWindow>, public EventTarg etWithInlineData, public DOMWindowBase64, public FrameDestructionObserver, publi c Supplementable<LocalDOMWindow>, public LifecycleContext<LocalDOMWindow> {
79 DEFINE_WRAPPERTYPEINFO(); 80 DEFINE_WRAPPERTYPEINFO();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 int outerHeight() const; 119 int outerHeight() const;
119 int outerWidth() const; 120 int outerWidth() const;
120 int innerHeight() const; 121 int innerHeight() const;
121 int innerWidth() const; 122 int innerWidth() const;
122 int screenX() const; 123 int screenX() const;
123 int screenY() const; 124 int screenY() const;
124 int screenLeft() const { return screenX(); } 125 int screenLeft() const { return screenX(); }
125 int screenTop() const { return screenY(); } 126 int screenTop() const { return screenY(); }
126 127
128 Tracing& tracing() const;
129
127 // FIXME(sky): keeping self for now since js-test.html uses it. 130 // FIXME(sky): keeping self for now since js-test.html uses it.
128 LocalDOMWindow* window() const; 131 LocalDOMWindow* window() const;
129 132
130 // DOM Level 2 AbstractView Interface 133 // DOM Level 2 AbstractView Interface
131 134
132 Document* document() const; 135 Document* document() const;
133 136
134 // CSSOM View Module 137 // CSSOM View Module
135 138
136 StyleMedia& styleMedia() const; 139 StyleMedia& styleMedia() const;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 RefPtr<Document> m_document; 228 RefPtr<Document> m_document;
226 229
227 #if ENABLE(ASSERT) 230 #if ENABLE(ASSERT)
228 bool m_hasBeenReset; 231 bool m_hasBeenReset;
229 #endif 232 #endif
230 233
231 HashSet<DOMWindowProperty*> m_properties; 234 HashSet<DOMWindowProperty*> m_properties;
232 235
233 mutable RefPtr<Screen> m_screen; 236 mutable RefPtr<Screen> m_screen;
234 mutable RefPtr<Location> m_location; 237 mutable RefPtr<Location> m_location;
235 238 mutable RefPtr<Tracing> m_tracing;
236 mutable RefPtr<DOMWindowCSS> m_css; 239 mutable RefPtr<DOMWindowCSS> m_css;
237 240
238 RefPtr<DOMWindowEventQueue> m_eventQueue; 241 RefPtr<DOMWindowEventQueue> m_eventQueue;
239 }; 242 };
240 243
241 } // namespace blink 244 } // namespace blink
242 245
243 #endif // SKY_ENGINE_CORE_FRAME_LOCALDOMWINDOW_H_ 246 #endif // SKY_ENGINE_CORE_FRAME_LOCALDOMWINDOW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698