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

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

Issue 14280004: Revert removal of events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698