OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 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 27 matching lines...) Expand all Loading... |
38 #include "core/css/CSSRuleList.h" | 38 #include "core/css/CSSRuleList.h" |
39 #include "core/css/DOMWindowCSS.h" | 39 #include "core/css/DOMWindowCSS.h" |
40 #include "core/css/MediaQueryList.h" | 40 #include "core/css/MediaQueryList.h" |
41 #include "core/css/MediaQueryMatcher.h" | 41 #include "core/css/MediaQueryMatcher.h" |
42 #include "core/css/StyleMedia.h" | 42 #include "core/css/StyleMedia.h" |
43 #include "core/css/resolver/StyleResolver.h" | 43 #include "core/css/resolver/StyleResolver.h" |
44 #include "core/dom/ContextFeatures.h" | 44 #include "core/dom/ContextFeatures.h" |
45 #include "core/dom/DOMImplementation.h" | 45 #include "core/dom/DOMImplementation.h" |
46 #include "core/dom/Element.h" | 46 #include "core/dom/Element.h" |
47 #include "core/dom/ExecutionContext.h" | 47 #include "core/dom/ExecutionContext.h" |
48 #include "core/dom/RequestAnimationFrameCallback.h" | 48 #include "core/dom/FrameRequestCallback.h" |
49 #include "core/editing/Editor.h" | 49 #include "core/editing/Editor.h" |
50 #include "core/events/DOMWindowEventQueue.h" | 50 #include "core/events/DOMWindowEventQueue.h" |
51 #include "core/events/EventListener.h" | 51 #include "core/events/EventListener.h" |
52 #include "core/events/HashChangeEvent.h" | 52 #include "core/events/HashChangeEvent.h" |
53 #include "core/events/MessageEvent.h" | 53 #include "core/events/MessageEvent.h" |
54 #include "core/events/PageTransitionEvent.h" | 54 #include "core/events/PageTransitionEvent.h" |
55 #include "core/events/PopStateEvent.h" | 55 #include "core/events/PopStateEvent.h" |
56 #include "core/frame/BarProp.h" | 56 #include "core/frame/BarProp.h" |
57 #include "core/frame/Console.h" | 57 #include "core/frame/Console.h" |
58 #include "core/frame/EventHandlerRegistry.h" | 58 #include "core/frame/EventHandlerRegistry.h" |
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 FrameHost* host = frame()->host(); | 1361 FrameHost* host = frame()->host(); |
1362 if (!host) | 1362 if (!host) |
1363 return; | 1363 return; |
1364 | 1364 |
1365 IntRect fr = host->chrome().windowRect(); | 1365 IntRect fr = host->chrome().windowRect(); |
1366 IntSize dest = IntSize(hasWidth ? width : fr.width(), hasHeight ? height : f
r.height()); | 1366 IntSize dest = IntSize(hasWidth ? width : fr.width(), hasHeight ? height : f
r.height()); |
1367 IntRect update(fr.location(), dest); | 1367 IntRect update(fr.location(), dest); |
1368 host->chrome().setWindowRect(adjustWindowRect(*frame(), update)); | 1368 host->chrome().setWindowRect(adjustWindowRect(*frame(), update)); |
1369 } | 1369 } |
1370 | 1370 |
1371 int LocalDOMWindow::requestAnimationFrame(RequestAnimationFrameCallback* callbac
k) | 1371 int LocalDOMWindow::requestAnimationFrame(FrameRequestCallback* callback) |
1372 { | 1372 { |
1373 callback->m_useLegacyTimeBase = false; | 1373 callback->m_useLegacyTimeBase = false; |
1374 if (Document* d = document()) | 1374 if (Document* d = document()) |
1375 return d->requestAnimationFrame(callback); | 1375 return d->requestAnimationFrame(callback); |
1376 return 0; | 1376 return 0; |
1377 } | 1377 } |
1378 | 1378 |
1379 int LocalDOMWindow::webkitRequestAnimationFrame(RequestAnimationFrameCallback* c
allback) | 1379 int LocalDOMWindow::webkitRequestAnimationFrame(FrameRequestCallback* callback) |
1380 { | 1380 { |
1381 callback->m_useLegacyTimeBase = true; | 1381 callback->m_useLegacyTimeBase = true; |
1382 if (Document* d = document()) | 1382 if (Document* d = document()) |
1383 return d->requestAnimationFrame(callback); | 1383 return d->requestAnimationFrame(callback); |
1384 return 0; | 1384 return 0; |
1385 } | 1385 } |
1386 | 1386 |
1387 void LocalDOMWindow::cancelAnimationFrame(int id) | 1387 void LocalDOMWindow::cancelAnimationFrame(int id) |
1388 { | 1388 { |
1389 if (Document* d = document()) | 1389 if (Document* d = document()) |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 return m_frameObserver->frame(); | 1687 return m_frameObserver->frame(); |
1688 } | 1688 } |
1689 | 1689 |
1690 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) | 1690 v8::Handle<v8::Object> LocalDOMWindow::wrap(v8::Handle<v8::Object> creationConte
xt, v8::Isolate* isolate) |
1691 { | 1691 { |
1692 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. | 1692 ASSERT_NOT_REACHED(); // LocalDOMWindow has [Custom=ToV8]. |
1693 return v8::Handle<v8::Object>(); | 1693 return v8::Handle<v8::Object>(); |
1694 } | 1694 } |
1695 | 1695 |
1696 } // namespace blink | 1696 } // namespace blink |
OLD | NEW |