| OLD | NEW |
| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 372 |
| 373 #if ENABLE(ORIENTATION_EVENTS) | 373 #if ENABLE(ORIENTATION_EVENTS) |
| 374 // This is the interface orientation in degrees. Some examples are: | 374 // This is the interface orientation in degrees. Some examples are: |
| 375 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 375 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
| 376 // 90 is when rotated counter clockwise. | 376 // 90 is when rotated counter clockwise. |
| 377 int orientation() const; | 377 int orientation() const; |
| 378 | 378 |
| 379 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); | 379 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); |
| 380 #endif | 380 #endif |
| 381 | 381 |
| 382 #if ENABLE(TOUCH_EVENTS) | |
| 383 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 382 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
| 384 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 383 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
| 385 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 384 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
| 386 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 385 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
| 387 #endif | |
| 388 | 386 |
| 389 Performance* performance() const; | 387 Performance* performance() const; |
| 390 | 388 |
| 391 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., | 389 // FIXME: When this DOMWindow is no longer the active DOMWindow (i.e., |
| 392 // when its document is no longer the document that is displayed in its | 390 // when its document is no longer the document that is displayed in its |
| 393 // frame), we would like to zero out m_frame to avoid being confused | 391 // frame), we would like to zero out m_frame to avoid being confused |
| 394 // by the document that is currently active in m_frame. | 392 // by the document that is currently active in m_frame. |
| 395 bool isCurrentlyDisplayedInFrame() const; | 393 bool isCurrentlyDisplayedInFrame() const; |
| 396 | 394 |
| 397 void willDetachDocumentFromFrame(); | 395 void willDetachDocumentFromFrame(); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 } | 459 } |
| 462 | 460 |
| 463 inline String DOMWindow::defaultStatus() const | 461 inline String DOMWindow::defaultStatus() const |
| 464 { | 462 { |
| 465 return m_defaultStatus; | 463 return m_defaultStatus; |
| 466 } | 464 } |
| 467 | 465 |
| 468 } // namespace WebCore | 466 } // namespace WebCore |
| 469 | 467 |
| 470 #endif // DOMWindow_h | 468 #endif // DOMWindow_h |
| OLD | NEW |