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

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

Issue 873973002: Remove window.history (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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/frame/History.idl ('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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class Database; 52 class Database;
53 class DatabaseCallback; 53 class DatabaseCallback;
54 class Document; 54 class Document;
55 class DocumentInit; 55 class DocumentInit;
56 class Element; 56 class Element;
57 class EventListener; 57 class EventListener;
58 class EventQueue; 58 class EventQueue;
59 class ExceptionState; 59 class ExceptionState;
60 class FloatRect; 60 class FloatRect;
61 class FrameConsole; 61 class FrameConsole;
62 class History;
63 class IDBFactory; 62 class IDBFactory;
64 class LocalFrame; 63 class LocalFrame;
65 class Location; 64 class Location;
66 class MediaQueryList; 65 class MediaQueryList;
67 class Node; 66 class Node;
68 class Page; 67 class Page;
69 class RequestAnimationFrameCallback; 68 class RequestAnimationFrameCallback;
70 class ScheduledAction; 69 class ScheduledAction;
71 class Screen; 70 class Screen;
72 class ScriptCallStack; 71 class ScriptCallStack;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 103
105 PassRefPtr<MediaQueryList> matchMedia(const String&); 104 PassRefPtr<MediaQueryList> matchMedia(const String&);
106 105
107 unsigned pendingUnloadEventListeners() const; 106 unsigned pendingUnloadEventListeners() const;
108 107
109 static FloatRect adjustWindowRect(LocalFrame&, const FloatRect& pendingChang es); 108 static FloatRect adjustWindowRect(LocalFrame&, const FloatRect& pendingChang es);
110 109
111 // DOM Level 0 110 // DOM Level 0
112 111
113 Screen& screen() const; 112 Screen& screen() const;
114 History& history() const;
115 113
116 Location& location() const; 114 Location& location() const;
117 void setLocation(const String& location, LocalDOMWindow* callingWindow, Loca lDOMWindow* enteredWindow, 115 void setLocation(const String& location, LocalDOMWindow* callingWindow, Loca lDOMWindow* enteredWindow,
118 SetLocationLocking = LockHistoryBasedOnGestureState); 116 SetLocationLocking = LockHistoryBasedOnGestureState);
119 117
120 DOMSelection* getSelection(); 118 DOMSelection* getSelection();
121 119
122 void focus(ExecutionContext* = 0); 120 void focus(ExecutionContext* = 0);
123 121
124 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const; 122 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) const;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 187
190 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& url String); 188 bool isInsecureScriptAccess(LocalDOMWindow& callingWindow, const String& url String);
191 189
192 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > createLifecycleNotifier(); 190 PassOwnPtr<LifecycleNotifier<LocalDOMWindow> > createLifecycleNotifier();
193 191
194 EventQueue* eventQueue() const; 192 EventQueue* eventQueue() const;
195 void enqueueWindowEvent(PassRefPtr<Event>); 193 void enqueueWindowEvent(PassRefPtr<Event>);
196 void enqueueDocumentEvent(PassRefPtr<Event>); 194 void enqueueDocumentEvent(PassRefPtr<Event>);
197 void enqueuePageshowEvent(PageshowEventPersistence); 195 void enqueuePageshowEvent(PageshowEventPersistence);
198 void enqueueHashchangeEvent(const String& oldURL, const String& newURL); 196 void enqueueHashchangeEvent(const String& oldURL, const String& newURL);
199 void enqueuePopstateEvent(PassRefPtr<SerializedScriptValue>);
200 void dispatchWindowLoadEvent(); 197 void dispatchWindowLoadEvent();
201 void documentWasClosed(); 198 void documentWasClosed();
202 void statePopped(PassRefPtr<SerializedScriptValue>);
203 199
204 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont ext. 200 // FIXME: This shouldn't be public once LocalDOMWindow becomes ExecutionCont ext.
205 void clearEventQueue(); 201 void clearEventQueue();
206 202
207 void acceptLanguagesChanged(); 203 void acceptLanguagesChanged();
208 204
209 protected: 205 protected:
210 DOMWindowLifecycleNotifier& lifecycleNotifier(); 206 DOMWindowLifecycleNotifier& lifecycleNotifier();
211 207
212 private: 208 private:
(...skipping 23 matching lines...) Expand all
236 RefPtr<Application> m_application; 232 RefPtr<Application> m_application;
237 RefPtr<Document> m_document; 233 RefPtr<Document> m_document;
238 234
239 #if ENABLE(ASSERT) 235 #if ENABLE(ASSERT)
240 bool m_hasBeenReset; 236 bool m_hasBeenReset;
241 #endif 237 #endif
242 238
243 HashSet<DOMWindowProperty*> m_properties; 239 HashSet<DOMWindowProperty*> m_properties;
244 240
245 mutable RefPtr<Screen> m_screen; 241 mutable RefPtr<Screen> m_screen;
246 mutable RefPtr<History> m_history;
247 mutable RefPtr<Console> m_console; 242 mutable RefPtr<Console> m_console;
248 mutable RefPtr<Location> m_location; 243 mutable RefPtr<Location> m_location;
249 mutable RefPtr<StyleMedia> m_media; 244 mutable RefPtr<StyleMedia> m_media;
250 245
251 mutable RefPtr<DOMWindowCSS> m_css; 246 mutable RefPtr<DOMWindowCSS> m_css;
252 247
253 RefPtr<DOMWindowEventQueue> m_eventQueue; 248 RefPtr<DOMWindowEventQueue> m_eventQueue;
254 RefPtr<SerializedScriptValue> m_pendingStateObject;
255 }; 249 };
256 250
257 } // namespace blink 251 } // namespace blink
258 252
259 #endif // SKY_ENGINE_CORE_FRAME_LOCALDOMWINDOW_H_ 253 #endif // SKY_ENGINE_CORE_FRAME_LOCALDOMWINDOW_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/History.idl ('k') | sky/engine/core/frame/LocalDOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698