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

Side by Side Diff: Source/core/dom/ExecutionContext.h

Issue 424163002: Enable the WebIDL [Exposed] annotation on an interface's members. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missed renames Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2012 Google Inc. All Rights Reserved. 3 * Copyright (C) 2012 Google Inc. All Rights Reserved.
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 class ExecutionContext 59 class ExecutionContext
60 : public LifecycleContext<ExecutionContext> 60 : public LifecycleContext<ExecutionContext>
61 , public WillBeHeapSupplementable<ExecutionContext> { 61 , public WillBeHeapSupplementable<ExecutionContext> {
62 public: 62 public:
63 virtual void trace(Visitor*) OVERRIDE; 63 virtual void trace(Visitor*) OVERRIDE;
64 64
65 // Delegating to ExecutionContextClient 65 // Delegating to ExecutionContextClient
66 bool isDocument() const { return m_client && m_client->isDocument(); } 66 bool isDocument() const { return m_client && m_client->isDocument(); }
67 bool isWorkerGlobalScope() const { return m_client && m_client->isWorkerGlob alScope(); } 67 bool isWorkerGlobalScope() const { return m_client && m_client->isWorkerGlob alScope(); }
68 bool isDedicatedWorkerGlobalScope() const { return m_client && m_client->isD edicatedWorkerGlobalScope(); }
69 bool isSharedWorkerGlobalScope() const { return m_client && m_client->isShar edWorkerGlobalScope(); }
70 bool isServiceWorkerGlobalScope() const { return m_client && m_client->isSer viceWorkerGlobalScope(); }
68 bool isJSExecutionForbidden() { return m_client && m_client->isJSExecutionFo rbidden(); } 71 bool isJSExecutionForbidden() { return m_client && m_client->isJSExecutionFo rbidden(); }
69 SecurityOrigin* securityOrigin() const; 72 SecurityOrigin* securityOrigin() const;
70 ContentSecurityPolicy* contentSecurityPolicy() const; 73 ContentSecurityPolicy* contentSecurityPolicy() const;
71 const KURL& url() const; 74 const KURL& url() const;
72 KURL completeURL(const String& url) const; 75 KURL completeURL(const String& url) const;
73 void disableEval(const String& errorMessage); 76 void disableEval(const String& errorMessage);
74 LocalDOMWindow* executingWindow() const; 77 LocalDOMWindow* executingWindow() const;
75 String userAgent(const KURL&) const; 78 String userAgent(const KURL&) const;
76 void postTask(PassOwnPtr<ExecutionContextTask>); 79 void postTask(PassOwnPtr<ExecutionContextTask>);
77 double timerAlignmentInterval() const; 80 double timerAlignmentInterval() const;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 172
170 // The location of this member is important; to make sure contextDestroyed() notification on 173 // The location of this member is important; to make sure contextDestroyed() notification on
171 // ExecutionContext's members (notably m_timeouts) is called before they are destructed, 174 // ExecutionContext's members (notably m_timeouts) is called before they are destructed,
172 // m_lifecycleNotifer should be placed *after* such members. 175 // m_lifecycleNotifer should be placed *after* such members.
173 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier; 176 OwnPtr<ContextLifecycleNotifier> m_lifecycleNotifier;
174 }; 177 };
175 178
176 } // namespace blink 179 } // namespace blink
177 180
178 #endif // ExecutionContext_h 181 #endif // ExecutionContext_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestTypedefs.cpp ('k') | Source/core/dom/ExecutionContextClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698