OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void disable(ErrorString*) override; | 49 virtual void disable(ErrorString*) override; |
50 bool enabled() { return m_enabled; } | 50 bool enabled() { return m_enabled; } |
51 | 51 |
52 virtual void setFrontend(InspectorFrontend*) override final; | 52 virtual void setFrontend(InspectorFrontend*) override final; |
53 virtual void clearFrontend() override final; | 53 virtual void clearFrontend() override final; |
54 virtual void restore() override final; | 54 virtual void restore() override final; |
55 | 55 |
56 void addMessageToConsole(ConsoleMessage*); | 56 void addMessageToConsole(ConsoleMessage*); |
57 void consoleMessagesCleared(); | 57 void consoleMessagesCleared(); |
58 | 58 |
59 virtual void setLastEvaluationResult(ErrorString*, const String& objectId) o
verride; | |
60 | |
61 protected: | 59 protected: |
62 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); | 60 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); |
63 virtual ConsoleMessageStorage* messageStorage() = 0; | 61 virtual ConsoleMessageStorage* messageStorage() = 0; |
64 | 62 |
65 virtual void enableStackCapturingIfNeeded() = 0; | 63 virtual void enableStackCapturingIfNeeded() = 0; |
66 virtual void disableStackCapturingIfNeeded() = 0; | 64 virtual void disableStackCapturingIfNeeded() = 0; |
67 | 65 |
68 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 66 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
69 InspectorFrontend::Console* m_frontend; | 67 InspectorFrontend::Console* m_frontend; |
70 bool m_enabled; | 68 bool m_enabled; |
71 }; | 69 }; |
72 | 70 |
73 } // namespace blink | 71 } // namespace blink |
74 | 72 |
75 | 73 |
76 #endif // !defined(InspectorConsoleAgent_h) | 74 #endif // !defined(InspectorConsoleAgent_h) |
OLD | NEW |