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

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

Issue 22802012: Rename DOMApplicationCache to ApplicationCache and expose it to JS (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to devtools and fix nits Created 7 years, 4 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/loader/appcache/DOMApplicationCache.idl ('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 18 matching lines...) Expand all
29 29
30 #include "bindings/v8/ScriptWrappable.h" 30 #include "bindings/v8/ScriptWrappable.h"
31 #include "core/dom/EventTarget.h" 31 #include "core/dom/EventTarget.h"
32 #include "core/page/FrameDestructionObserver.h" 32 #include "core/page/FrameDestructionObserver.h"
33 #include "core/platform/LifecycleContext.h" 33 #include "core/platform/LifecycleContext.h"
34 #include "core/platform/Supplementable.h" 34 #include "core/platform/Supplementable.h"
35 35
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 class ApplicationCache;
39 class BarProp; 40 class BarProp;
40 class CSSRuleList; 41 class CSSRuleList;
41 class CSSStyleDeclaration; 42 class CSSStyleDeclaration;
42 class Console; 43 class Console;
43 class DOMApplicationCache;
44 class DOMPoint; 44 class DOMPoint;
45 class DOMSelection; 45 class DOMSelection;
46 class DOMURL; 46 class DOMURL;
47 class DOMWindowProperty; 47 class DOMWindowProperty;
48 class Database; 48 class Database;
49 class DatabaseCallback; 49 class DatabaseCallback;
50 class Document; 50 class Document;
51 class DOMWindowLifecycleNotifier; 51 class DOMWindowLifecycleNotifier;
52 class Element; 52 class Element;
53 class EventListener; 53 class EventListener;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicemotion); 339 DEFINE_ATTRIBUTE_EVENT_LISTENER(devicemotion);
340 DEFINE_ATTRIBUTE_EVENT_LISTENER(deviceorientation); 340 DEFINE_ATTRIBUTE_EVENT_LISTENER(deviceorientation);
341 341
342 // HTML 5 key/value storage 342 // HTML 5 key/value storage
343 Storage* sessionStorage(ExceptionState&) const; 343 Storage* sessionStorage(ExceptionState&) const;
344 Storage* localStorage(ExceptionState&) const; 344 Storage* localStorage(ExceptionState&) const;
345 Storage* optionalSessionStorage() const { return m_sessionStorage.get(); } 345 Storage* optionalSessionStorage() const { return m_sessionStorage.get(); }
346 Storage* optionalLocalStorage() const { return m_localStorage.get(); } 346 Storage* optionalLocalStorage() const { return m_localStorage.get(); }
347 347
348 DOMApplicationCache* applicationCache() const; 348 ApplicationCache* applicationCache() const;
349 DOMApplicationCache* optionalApplicationCache() const { return m_applica tionCache.get(); } 349 ApplicationCache* optionalApplicationCache() const { return m_applicatio nCache.get(); }
350 350
351 #if ENABLE(ORIENTATION_EVENTS) 351 #if ENABLE(ORIENTATION_EVENTS)
352 // This is the interface orientation in degrees. Some examples are: 352 // This is the interface orientation in degrees. Some examples are:
353 // 0 is straight up; -90 is when the device is rotated 90 clockwise; 353 // 0 is straight up; -90 is when the device is rotated 90 clockwise;
354 // 90 is when rotated counter clockwise. 354 // 90 is when rotated counter clockwise.
355 int orientation() const; 355 int orientation() const;
356 356
357 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); 357 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange);
358 #endif 358 #endif
359 359
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 mutable RefPtr<Location> m_location; 415 mutable RefPtr<Location> m_location;
416 mutable RefPtr<StyleMedia> m_media; 416 mutable RefPtr<StyleMedia> m_media;
417 417
418 EventTargetData m_eventTargetData; 418 EventTargetData m_eventTargetData;
419 419
420 String m_status; 420 String m_status;
421 String m_defaultStatus; 421 String m_defaultStatus;
422 422
423 mutable RefPtr<Storage> m_sessionStorage; 423 mutable RefPtr<Storage> m_sessionStorage;
424 mutable RefPtr<Storage> m_localStorage; 424 mutable RefPtr<Storage> m_localStorage;
425 mutable RefPtr<DOMApplicationCache> m_applicationCache; 425 mutable RefPtr<ApplicationCache> m_applicationCache;
426 426
427 mutable RefPtr<Performance> m_performance; 427 mutable RefPtr<Performance> m_performance;
428 428
429 mutable RefPtr<DOMWindowCSS> m_css; 429 mutable RefPtr<DOMWindowCSS> m_css;
430 }; 430 };
431 431
432 inline String DOMWindow::status() const 432 inline String DOMWindow::status() const
433 { 433 {
434 return m_status; 434 return m_status;
435 } 435 }
436 436
437 inline String DOMWindow::defaultStatus() const 437 inline String DOMWindow::defaultStatus() const
438 { 438 {
439 return m_defaultStatus; 439 return m_defaultStatus;
440 } 440 }
441 441
442 } // namespace WebCore 442 } // namespace WebCore
443 443
444 #endif // DOMWindow_h 444 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/loader/appcache/DOMApplicationCache.idl ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698