| 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 27 matching lines...) Expand all Loading... |
| 38 #include "core/inspector/InspectorFrontendHost.h" | 38 #include "core/inspector/InspectorFrontendHost.h" |
| 39 #include "core/platform/HistogramSupport.h" | 39 #include "core/platform/HistogramSupport.h" |
| 40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
| 41 | 41 |
| 42 namespace WebCore { | 42 namespace WebCore { |
| 43 | 43 |
| 44 void V8InspectorFrontendHost::platformMethodCustom(const v8::FunctionCallbackInf
o<v8::Value>& args) | 44 void V8InspectorFrontendHost::platformMethodCustom(const v8::FunctionCallbackInf
o<v8::Value>& args) |
| 45 { | 45 { |
| 46 #if OS(MACOSX) | 46 #if OS(MACOSX) |
| 47 v8SetReturnValue(args, v8::String::NewSymbol("mac")); | 47 v8SetReturnValue(args, v8::String::NewSymbol("mac")); |
| 48 #elif OS(LINUX) | |
| 49 v8SetReturnValue(args, v8::String::NewSymbol("linux")); | |
| 50 #elif OS(FREEBSD) | |
| 51 v8SetReturnValue(args, v8::String::NewSymbol("freebsd")); | |
| 52 #elif OS(OPENBSD) | |
| 53 v8SetReturnValue(args, v8::String::NewSymbol("openbsd")); | |
| 54 #elif OS(WIN) | 48 #elif OS(WIN) |
| 55 v8SetReturnValue(args, v8::String::NewSymbol("windows")); | 49 v8SetReturnValue(args, v8::String::NewSymbol("windows")); |
| 56 #else | 50 #else // Unix-like systems |
| 57 v8SetReturnValue(args, v8::String::NewSymbol("unknown")); | 51 v8SetReturnValue(args, v8::String::NewSymbol("linux")); |
| 58 #endif | 52 #endif |
| 59 } | 53 } |
| 60 | 54 |
| 61 void V8InspectorFrontendHost::portMethodCustom(const v8::FunctionCallbackInfo<v8
::Value>&) | 55 void V8InspectorFrontendHost::portMethodCustom(const v8::FunctionCallbackInfo<v8
::Value>&) |
| 62 { | 56 { |
| 63 } | 57 } |
| 64 | 58 |
| 65 static void populateContextMenuItems(v8::Local<v8::Array>& itemArray, ContextMen
u& menu) | 59 static void populateContextMenuItems(v8::Local<v8::Array>& itemArray, ContextMen
u& menu) |
| 66 { | 60 { |
| 67 for (size_t i = 0; i < itemArray->Length(); ++i) { | 61 for (size_t i = 0; i < itemArray->Length(); ++i) { |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 histogramEnumeration("DevTools.PanelShown", args, 20); | 137 histogramEnumeration("DevTools.PanelShown", args, 20); |
| 144 } | 138 } |
| 145 | 139 |
| 146 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) | 140 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) |
| 147 { | 141 { |
| 148 histogramEnumeration("DevTools.SettingChanged", args, 100); | 142 histogramEnumeration("DevTools.SettingChanged", args, 100); |
| 149 } | 143 } |
| 150 | 144 |
| 151 } // namespace WebCore | 145 } // namespace WebCore |
| 152 | 146 |
| OLD | NEW |