Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 621 m_navigator = nullptr; | 621 m_navigator = nullptr; |
| 622 m_performance = nullptr; | 622 m_performance = nullptr; |
| 623 m_location = nullptr; | 623 m_location = nullptr; |
| 624 m_media = nullptr; | 624 m_media = nullptr; |
| 625 m_sessionStorage = nullptr; | 625 m_sessionStorage = nullptr; |
| 626 m_localStorage = nullptr; | 626 m_localStorage = nullptr; |
| 627 m_applicationCache = nullptr; | 627 m_applicationCache = nullptr; |
| 628 #if ENABLE(ASSERT) | 628 #if ENABLE(ASSERT) |
| 629 m_hasBeenReset = true; | 629 m_hasBeenReset = true; |
| 630 #endif | 630 #endif |
| 631 | |
| 632 LifecycleContext<LocalDOMWindow>::contextDestroyed(); | |
|
haraken
2014/12/23 03:43:44
This is not a right timing to dispatch contextDest
sof
2014/12/23 14:40:30
Would it work to tie contextDestroyed() for a DOMW
| |
| 631 } | 633 } |
| 632 | 634 |
| 633 bool LocalDOMWindow::isCurrentlyDisplayedInFrame() const | 635 bool LocalDOMWindow::isCurrentlyDisplayedInFrame() const |
| 634 { | 636 { |
| 635 return frame() && frame()->domWindow() == this && frame()->host(); | 637 return frame() && frame()->domWindow() == this && frame()->host(); |
| 636 } | 638 } |
| 637 | 639 |
| 638 void LocalDOMWindow::sendOrientationChangeEvent() | 640 void LocalDOMWindow::sendOrientationChangeEvent() |
| 639 { | 641 { |
| 640 ASSERT(RuntimeEnabledFeatures::orientationEventEnabled()); | 642 ASSERT(RuntimeEnabledFeatures::orientationEventEnabled()); |
| (...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1968 return m_frameObserver->frame(); | 1970 return m_frameObserver->frame(); |
| 1969 } | 1971 } |
| 1970 | 1972 |
| 1971 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate) | 1973 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte xt, v8::Isolate* isolate) |
| 1972 { | 1974 { |
| 1973 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1975 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
| 1974 return v8::Handle<v8::Object>(); | 1976 return v8::Handle<v8::Object>(); |
| 1975 } | 1977 } |
| 1976 | 1978 |
| 1977 } // namespace blink | 1979 } // namespace blink |
| OLD | NEW |