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

Side by Side Diff: third_party/WebKit/Source/core/frame/Console.cpp

Issue 1859293002: [DevTools] Move Console to v8_inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 { 52 {
53 } 53 }
54 54
55 DEFINE_TRACE(Console) 55 DEFINE_TRACE(Console)
56 { 56 {
57 ConsoleBase::trace(visitor); 57 ConsoleBase::trace(visitor);
58 DOMWindowProperty::trace(visitor); 58 DOMWindowProperty::trace(visitor);
59 Supplementable<Console>::trace(visitor); 59 Supplementable<Console>::trace(visitor);
60 } 60 }
61 61
62 ExecutionContext* Console::context()
63 {
64 if (!frame())
65 return 0;
66 return frame()->document();
67 }
68
69 void Console::reportMessageToConsole(ConsoleMessage* consoleMessage) 62 void Console::reportMessageToConsole(ConsoleMessage* consoleMessage)
70 { 63 {
71 if (!frame()) 64 if (!frame())
72 return; 65 return;
73 66
74 frame()->console().addMessage(consoleMessage); 67 frame()->console().addMessage(consoleMessage);
75 } 68 }
76 69
77 } // namespace blink 70 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698