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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 370 |
371 #if ENABLE(ORIENTATION_EVENTS) | 371 #if ENABLE(ORIENTATION_EVENTS) |
372 // This is the interface orientation in degrees. Some examples are: | 372 // This is the interface orientation in degrees. Some examples are: |
373 // 0 is straight up; -90 is when the device is rotated 90 clockwise; | 373 // 0 is straight up; -90 is when the device is rotated 90 clockwise; |
374 // 90 is when rotated counter clockwise. | 374 // 90 is when rotated counter clockwise. |
375 int orientation() const; | 375 int orientation() const; |
376 | 376 |
377 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); | 377 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); |
378 #endif | 378 #endif |
379 | 379 |
| 380 #if ENABLE(TOUCH_EVENTS) |
380 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 381 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
381 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 382 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
382 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 383 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
383 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 384 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
| 385 #endif |
384 | 386 |
385 Performance* performance() const; | 387 Performance* performance() const; |
386 | 388 |
387 // 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., |
388 // 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 |
389 // 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 |
390 // by the document that is currently active in m_frame. | 392 // by the document that is currently active in m_frame. |
391 bool isCurrentlyDisplayedInFrame() const; | 393 bool isCurrentlyDisplayedInFrame() const; |
392 | 394 |
393 void willDetachDocumentFromFrame(); | 395 void willDetachDocumentFromFrame(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 457 } |
456 | 458 |
457 inline String DOMWindow::defaultStatus() const | 459 inline String DOMWindow::defaultStatus() const |
458 { | 460 { |
459 return m_defaultStatus; | 461 return m_defaultStatus; |
460 } | 462 } |
461 | 463 |
462 } // namespace WebCore | 464 } // namespace WebCore |
463 | 465 |
464 #endif // DOMWindow_h | 466 #endif // DOMWindow_h |
OLD | NEW |