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

Side by Side Diff: Source/core/dom/ExecutionContextClient.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
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/workers/WorkerGlobalScope.h » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class ScriptCallStack; 43 class ScriptCallStack;
44 class ScriptState; 44 class ScriptState;
45 class SecurityContext; 45 class SecurityContext;
46 46
47 class ExecutionContextClient { 47 class ExecutionContextClient {
48 public: 48 public:
49 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the task on context's thread asynchronously. 49 virtual void postTask(PassOwnPtr<ExecutionContextTask>) = 0; // Executes the task on context's thread asynchronously.
50 50
51 virtual bool isDocument() const { return false; } 51 virtual bool isDocument() const { return false; }
52 virtual bool isWorkerGlobalScope() const { return false; } 52 virtual bool isWorkerGlobalScope() const { return false; }
53 virtual bool isDedicatedWorkerGlobalScope() const { return false; }
54 virtual bool isSharedWorkerGlobalScope() const { return false; }
55 virtual bool isServiceWorkerGlobalScope() const { return false; }
53 virtual bool isJSExecutionForbidden() const = 0; 56 virtual bool isJSExecutionForbidden() const = 0;
54 virtual LocalDOMWindow* executingWindow() { return 0; } 57 virtual LocalDOMWindow* executingWindow() { return 0; }
55 virtual String userAgent(const KURL&) const = 0; 58 virtual String userAgent(const KURL&) const = 0;
56 virtual void disableEval(const String& errorMessage) = 0; 59 virtual void disableEval(const String& errorMessage) = 0;
57 virtual SecurityContext& securityContext() = 0; 60 virtual SecurityContext& securityContext() = 0;
58 virtual void addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0; 61 virtual void addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage>) = 0;
59 virtual EventTarget* errorEventTarget() = 0; 62 virtual EventTarget* errorEventTarget() = 0;
60 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) = 0; 63 virtual void logExceptionToConsole(const String& errorMessage, const String& sourceURL, int lineNumber, int columnNumber, PassRefPtrWillBeRawPtr<ScriptCallS tack>) = 0;
61 virtual double timerAlignmentInterval() const = 0; 64 virtual double timerAlignmentInterval() const = 0;
62 virtual void didUpdateSecurityOrigin() = 0; 65 virtual void didUpdateSecurityOrigin() = 0;
63 66
64 virtual void tasksWereSuspended() { } 67 virtual void tasksWereSuspended() { }
65 virtual void tasksWereResumed() { } 68 virtual void tasksWereResumed() { }
66 69
67 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage> consoleMessage ) { addMessage(consoleMessage); } 70 void addConsoleMessage(PassRefPtrWillBeRawPtr<ConsoleMessage> consoleMessage ) { addMessage(consoleMessage); }
68 71
69 protected: 72 protected:
70 virtual ~ExecutionContextClient() { } 73 virtual ~ExecutionContextClient() { }
71 74
72 }; 75 };
73 76
74 77
75 } // namespace 78 } // namespace
76 79
77 #endif 80 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/ExecutionContext.h ('k') | Source/core/workers/WorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698