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

Side by Side Diff: Source/core/inspector/ConsoleMessage.h

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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/html/ImageDocument.cpp ('k') | Source/core/inspector/ConsoleMessage.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 21 matching lines...) Expand all
32 #define ConsoleMessage_h 32 #define ConsoleMessage_h
33 33
34 #include "bindings/v8/ScriptState.h" 34 #include "bindings/v8/ScriptState.h"
35 #include "core/InspectorFrontend.h" 35 #include "core/InspectorFrontend.h"
36 #include "core/inspector/ConsoleAPITypes.h" 36 #include "core/inspector/ConsoleAPITypes.h"
37 #include "core/frame/ConsoleTypes.h" 37 #include "core/frame/ConsoleTypes.h"
38 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
39 39
40 namespace WebCore { 40 namespace WebCore {
41 41
42 class DOMWindow; 42 class LocalDOMWindow;
43 class InjectedScriptManager; 43 class InjectedScriptManager;
44 class InspectorFrontend; 44 class InspectorFrontend;
45 class ScriptArguments; 45 class ScriptArguments;
46 class ScriptCallFrame; 46 class ScriptCallFrame;
47 class ScriptCallStack; 47 class ScriptCallStack;
48 class ScriptValue; 48 class ScriptValue;
49 49
50 class ConsoleMessage { 50 class ConsoleMessage {
51 WTF_MAKE_NONCOPYABLE(ConsoleMessage); WTF_MAKE_FAST_ALLOCATED; 51 WTF_MAKE_NONCOPYABLE(ConsoleMessage); WTF_MAKE_FAST_ALLOCATED;
52 public: 52 public:
53 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message); 53 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message);
54 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message, const String& url, unsigned line, unsigned column , ScriptState*, unsigned long requestIdentifier); 54 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message, const String& url, unsigned line, unsigned column , ScriptState*, unsigned long requestIdentifier);
55 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message, PassRefPtrWillBeRawPtr<ScriptCallStack>, unsigned long requestIdentifier); 55 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message, PassRefPtrWillBeRawPtr<ScriptCallStack>, unsigned long requestIdentifier);
56 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message, PassRefPtrWillBeRawPtr<ScriptArguments>, ScriptSt ate*, unsigned long requestIdentifier); 56 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag eLevel, const String& message, PassRefPtrWillBeRawPtr<ScriptArguments>, ScriptSt ate*, unsigned long requestIdentifier);
57 ~ConsoleMessage(); 57 ~ConsoleMessage();
58 58
59 void addToFrontend(InspectorFrontend::Console*, InjectedScriptManager*, bool generatePreview); 59 void addToFrontend(InspectorFrontend::Console*, InjectedScriptManager*, bool generatePreview);
60 void setTimestamp(double timestamp) { m_timestamp = timestamp; } 60 void setTimestamp(double timestamp) { m_timestamp = timestamp; }
61 61
62 MessageType type() const { return m_type; } 62 MessageType type() const { return m_type; }
63 63
64 void windowCleared(DOMWindow*); 64 void windowCleared(LocalDOMWindow*);
65 65
66 unsigned argumentCount(); 66 unsigned argumentCount();
67 67
68 private: 68 private:
69 void autogenerateMetadata(bool canGenerateCallStack, ScriptState* = 0); 69 void autogenerateMetadata(bool canGenerateCallStack, ScriptState* = 0);
70 70
71 MessageSource m_source; 71 MessageSource m_source;
72 MessageType m_type; 72 MessageType m_type;
73 MessageLevel m_level; 73 MessageLevel m_level;
74 String m_message; 74 String m_message;
75 ScriptStateProtectingContext m_scriptState; 75 ScriptStateProtectingContext m_scriptState;
76 RefPtrWillBePersistent<ScriptArguments> m_arguments; 76 RefPtrWillBePersistent<ScriptArguments> m_arguments;
77 RefPtrWillBePersistent<ScriptCallStack> m_callStack; 77 RefPtrWillBePersistent<ScriptCallStack> m_callStack;
78 String m_url; 78 String m_url;
79 unsigned m_line; 79 unsigned m_line;
80 unsigned m_column; 80 unsigned m_column;
81 String m_requestId; 81 String m_requestId;
82 double m_timestamp; 82 double m_timestamp;
83 }; 83 };
84 84
85 } // namespace WebCore 85 } // namespace WebCore
86 86
87 #endif // ConsoleMessage_h 87 #endif // ConsoleMessage_h
OLDNEW
« no previous file with comments | « Source/core/html/ImageDocument.cpp ('k') | Source/core/inspector/ConsoleMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698