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

Side by Side Diff: Source/WebCore/page/DOMWindow.h

Issue 13866007: WebKit & WebCore part of the device motion implementation using the platform layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@devicemotion-webcore
Patch Set: fixed Peter's comments Created 7 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 /* 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., 404 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e.,
405 // when its document is no longer the document that is displayed in its 405 // when its document is no longer the document that is displayed in its
406 // frame), we would like to zero out m_frame to avoid being confused 406 // frame), we would like to zero out m_frame to avoid being confused
407 // by the document that is currently active in m_frame. 407 // by the document that is currently active in m_frame.
408 bool isCurrentlyDisplayedInFrame() const; 408 bool isCurrentlyDisplayedInFrame() const;
409 409
410 void willDetachDocumentFromFrame(); 410 void willDetachDocumentFromFrame();
411 void willDestroyCachedFrame(); 411 void willDestroyCachedFrame();
412 412
413 Page* page();
414
415 private: 413 private:
416 explicit DOMWindow(Document*); 414 explicit DOMWindow(Document*);
417 415
416 Page* page();
Peter Beverloo 2013/04/18 13:56:06 I don't understand why this shows up as a diff? D
timvolodine 2013/04/18 14:55:37 no nothing landed, but this apparently diffs again
417
418 virtual void frameDestroyed() OVERRIDE; 418 virtual void frameDestroyed() OVERRIDE;
419 virtual void willDetachPage() OVERRIDE; 419 virtual void willDetachPage() OVERRIDE;
420 420
421 virtual void refEventTarget() { ref(); } 421 virtual void refEventTarget() { ref(); }
422 virtual void derefEventTarget() { deref(); } 422 virtual void derefEventTarget() { deref(); }
423 virtual EventTargetData* eventTargetData(); 423 virtual EventTargetData* eventTargetData();
424 virtual EventTargetData* ensureEventTargetData(); 424 virtual EventTargetData* ensureEventTargetData();
425 425
426 static Frame* createWindow(const String& urlString, const AtomicString& frameName, const WindowFeatures&, 426 static Frame* createWindow(const String& urlString, const AtomicString& frameName, const WindowFeatures&,
427 DOMWindow* activeWindow, Frame* firstFrame, Frame* openerFrame, 427 DOMWindow* activeWindow, Frame* firstFrame, Frame* openerFrame,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 476 }
477 477
478 inline String DOMWindow::defaultStatus() const 478 inline String DOMWindow::defaultStatus() const
479 { 479 {
480 return m_defaultStatus; 480 return m_defaultStatus;
481 } 481 }
482 482
483 } // namespace WebCore 483 } // namespace WebCore
484 484
485 #endif // DOMWindow_h 485 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698