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 26 matching lines...) Expand all Loading... |
37 #include "core/platform/HistogramSupport.h" | 37 #include "core/platform/HistogramSupport.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 | 39 |
40 #include "V8MouseEvent.h" | 40 #include "V8MouseEvent.h" |
41 #include "bindings/v8/V8Binding.h" | 41 #include "bindings/v8/V8Binding.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 void V8InspectorFrontendHost::platformMethodCustom(const v8::FunctionCallbackInf
o<v8::Value>& args) | 45 void V8InspectorFrontendHost::platformMethodCustom(const v8::FunctionCallbackInf
o<v8::Value>& args) |
46 { | 46 { |
47 #if OS(DARWIN) | 47 #if OS(MACOSX) |
48 v8SetReturnValue(args, v8::String::NewSymbol("mac")); | 48 v8SetReturnValue(args, v8::String::NewSymbol("mac")); |
49 #elif OS(LINUX) | 49 #elif OS(LINUX) |
50 v8SetReturnValue(args, v8::String::NewSymbol("linux")); | 50 v8SetReturnValue(args, v8::String::NewSymbol("linux")); |
51 #elif OS(FREEBSD) | 51 #elif OS(FREEBSD) |
52 v8SetReturnValue(args, v8::String::NewSymbol("freebsd")); | 52 v8SetReturnValue(args, v8::String::NewSymbol("freebsd")); |
53 #elif OS(OPENBSD) | 53 #elif OS(OPENBSD) |
54 v8SetReturnValue(args, v8::String::NewSymbol("openbsd")); | 54 v8SetReturnValue(args, v8::String::NewSymbol("openbsd")); |
55 #elif OS(WINDOWS) | 55 #elif OS(WINDOWS) |
56 v8SetReturnValue(args, v8::String::NewSymbol("windows")); | 56 v8SetReturnValue(args, v8::String::NewSymbol("windows")); |
57 #else | 57 #else |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 histogramEnumeration("DevTools.PanelShown", args, 20); | 144 histogramEnumeration("DevTools.PanelShown", args, 20); |
145 } | 145 } |
146 | 146 |
147 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) | 147 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) |
148 { | 148 { |
149 histogramEnumeration("DevTools.SettingChanged", args, 100); | 149 histogramEnumeration("DevTools.SettingChanged", args, 100); |
150 } | 150 } |
151 | 151 |
152 } // namespace WebCore | 152 } // namespace WebCore |
153 | 153 |
OLD | NEW |