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

Unified Diff: Source/core/frame/Screen.h

Issue 241203003: Screen Orientation: fire event on Window instead of Screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ScreenOrientationUndefined
Patch Set: fix tests Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/EventTargetFactory.in ('k') | Source/core/frame/Screen.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/Screen.h
diff --git a/Source/core/frame/Screen.h b/Source/core/frame/Screen.h
index d03653e14bfafa21a69033a3e36b64cde265522e..e4ae7ca982f84acfb1c13ebc6626541d96dcfe50 100644
--- a/Source/core/frame/Screen.h
+++ b/Source/core/frame/Screen.h
@@ -31,7 +31,6 @@
#define Screen_h
#include "bindings/v8/ScriptWrappable.h"
-#include "core/events/EventTarget.h"
#include "core/frame/DOMWindowProperty.h"
#include "heap/Handle.h"
#include "platform/Supplementable.h"
@@ -42,9 +41,8 @@ namespace WebCore {
class LocalFrame;
- class Screen FINAL : public RefCountedWillBeRefCountedGarbageCollected<Screen>, public ScriptWrappable, public EventTargetWithInlineData, public DOMWindowProperty, public WillBeHeapSupplementable<Screen> {
+ class Screen FINAL : public RefCountedWillBeRefCountedGarbageCollected<Screen>, public ScriptWrappable, public DOMWindowProperty, public WillBeHeapSupplementable<Screen> {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Screen);
- DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<Screen>);
public:
static PassRefPtrWillBeRawPtr<Screen> create(LocalFrame* frame)
{
@@ -60,10 +58,6 @@ namespace WebCore {
unsigned availHeight() const;
unsigned availWidth() const;
- // EventTarget.
- virtual const AtomicString& interfaceName() const OVERRIDE;
- virtual ExecutionContext* executionContext() const OVERRIDE;
-
void trace(Visitor*);
private:
« no previous file with comments | « Source/core/events/EventTargetFactory.in ('k') | Source/core/frame/Screen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698