| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "Database.h" | 69 #include "Database.h" |
| 70 #endif | 70 #endif |
| 71 | 71 |
| 72 #if ENABLE(DOM_STORAGE) | 72 #if ENABLE(DOM_STORAGE) |
| 73 #include "LocalStorage.h" | 73 #include "LocalStorage.h" |
| 74 #include "SessionStorage.h" | 74 #include "SessionStorage.h" |
| 75 #include "Storage.h" | 75 #include "Storage.h" |
| 76 #include "StorageArea.h" | 76 #include "StorageArea.h" |
| 77 #endif | 77 #endif |
| 78 | 78 |
| 79 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 79 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 80 #include "DOMApplicationCache.h" | 80 #include "DOMApplicationCache.h" |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 using std::min; | 83 using std::min; |
| 84 using std::max; | 84 using std::max; |
| 85 | 85 |
| 86 namespace WebCore { | 86 namespace WebCore { |
| 87 | 87 |
| 88 class PostMessageTimer : public TimerBase { | 88 class PostMessageTimer : public TimerBase { |
| 89 public: | 89 public: |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 #if ENABLE(DOM_STORAGE) | 428 #if ENABLE(DOM_STORAGE) |
| 429 if (m_sessionStorage) | 429 if (m_sessionStorage) |
| 430 m_sessionStorage->disconnectFrame(); | 430 m_sessionStorage->disconnectFrame(); |
| 431 m_sessionStorage = 0; | 431 m_sessionStorage = 0; |
| 432 | 432 |
| 433 if (m_localStorage) | 433 if (m_localStorage) |
| 434 m_localStorage->disconnectFrame(); | 434 m_localStorage->disconnectFrame(); |
| 435 m_localStorage = 0; | 435 m_localStorage = 0; |
| 436 #endif | 436 #endif |
| 437 | 437 |
| 438 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 438 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 439 if (m_applicationCache) | 439 if (m_applicationCache) |
| 440 m_applicationCache->disconnectFrame(); | 440 m_applicationCache->disconnectFrame(); |
| 441 m_applicationCache = 0; | 441 m_applicationCache = 0; |
| 442 #endif | 442 #endif |
| 443 } | 443 } |
| 444 | 444 |
| 445 Screen* DOMWindow::screen() const | 445 Screen* DOMWindow::screen() const |
| 446 { | 446 { |
| 447 if (!m_screen) | 447 if (!m_screen) |
| 448 m_screen = Screen::create(m_frame); | 448 m_screen = Screen::create(m_frame); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 return m_toolbar.get(); | 498 return m_toolbar.get(); |
| 499 } | 499 } |
| 500 | 500 |
| 501 Console* DOMWindow::console() const | 501 Console* DOMWindow::console() const |
| 502 { | 502 { |
| 503 if (!m_console) | 503 if (!m_console) |
| 504 m_console = Console::create(m_frame); | 504 m_console = Console::create(m_frame); |
| 505 return m_console.get(); | 505 return m_console.get(); |
| 506 } | 506 } |
| 507 | 507 |
| 508 #if ENABLE(OFFLINE_WEB_APPLICATIONS) | 508 #if ENABLE(OFFLINE_WEB_APPLICATIONS) || ENABLE(APPLICATION_CACHE) |
| 509 DOMApplicationCache* DOMWindow::applicationCache() const | 509 DOMApplicationCache* DOMWindow::applicationCache() const |
| 510 { | 510 { |
| 511 if (!m_applicationCache) | 511 if (!m_applicationCache) |
| 512 m_applicationCache = DOMApplicationCache::create(m_frame); | 512 m_applicationCache = DOMApplicationCache::create(m_frame); |
| 513 return m_applicationCache.get(); | 513 return m_applicationCache.get(); |
| 514 } | 514 } |
| 515 #endif | 515 #endif |
| 516 | 516 |
| 517 Navigator* DOMWindow::navigator() const | 517 Navigator* DOMWindow::navigator() const |
| 518 { | 518 { |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1661 { | 1661 { |
| 1662 // Not implemented. | 1662 // Not implemented. |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 void DOMWindow::releaseEvents() | 1665 void DOMWindow::releaseEvents() |
| 1666 { | 1666 { |
| 1667 // Not implemented. | 1667 // Not implemented. |
| 1668 } | 1668 } |
| 1669 | 1669 |
| 1670 } // namespace WebCore | 1670 } // namespace WebCore |
| OLD | NEW |