OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2007-2009 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "bindings/core/v8/V8Window.h" | 36 #include "bindings/core/v8/V8Window.h" |
37 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
38 #include "core/frame/LocalDOMWindow.h" | 38 #include "core/frame/LocalDOMWindow.h" |
39 #include "core/inspector/InspectorController.h" | 39 #include "core/inspector/InspectorController.h" |
40 #include "core/inspector/InspectorFrontendClient.h" | 40 #include "core/inspector/InspectorFrontendClient.h" |
41 #include "core/inspector/InspectorFrontendHost.h" | 41 #include "core/inspector/InspectorFrontendHost.h" |
42 #include "platform/ContextMenu.h" | 42 #include "platform/ContextMenu.h" |
43 #include "public/platform/Platform.h" | 43 #include "public/platform/Platform.h" |
44 #include "wtf/text/WTFString.h" | 44 #include "wtf/text/WTFString.h" |
45 | 45 |
46 namespace WebCore { | 46 namespace blink { |
47 | 47 |
48 void V8InspectorFrontendHost::platformMethodCustom(const v8::FunctionCallbackInf
o<v8::Value>& info) | 48 void V8InspectorFrontendHost::platformMethodCustom(const v8::FunctionCallbackInf
o<v8::Value>& info) |
49 { | 49 { |
50 #if OS(MACOSX) | 50 #if OS(MACOSX) |
51 v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "mac")); | 51 v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "mac")); |
52 #elif OS(WIN) | 52 #elif OS(WIN) |
53 v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "windows")); | 53 v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "windows")); |
54 #else // Unix-like systems | 54 #else // Unix-like systems |
55 v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "linux")); | 55 v8SetReturnValue(info, v8AtomicString(info.GetIsolate(), "linux")); |
56 #endif | 56 #endif |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void V8InspectorFrontendHost::recordActionTakenMethodCustom(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 172 void V8InspectorFrontendHost::recordActionTakenMethodCustom(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
173 { | 173 { |
174 histogramEnumeration("DevTools.ActionTaken", info, 100); | 174 histogramEnumeration("DevTools.ActionTaken", info, 100); |
175 } | 175 } |
176 | 176 |
177 void V8InspectorFrontendHost::recordPanelShownMethodCustom(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 177 void V8InspectorFrontendHost::recordPanelShownMethodCustom(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
178 { | 178 { |
179 histogramEnumeration("DevTools.PanelShown", info, 20); | 179 histogramEnumeration("DevTools.PanelShown", info, 20); |
180 } | 180 } |
181 | 181 |
182 } // namespace WebCore | 182 } // namespace blink |
183 | 183 |
OLD | NEW |