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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(DARWIN) |
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(SOLARIS) | |
56 v8SetReturnValue(args, v8::String::NewSymbol("solaris")); | |
57 #elif OS(WINDOWS) | 55 #elif OS(WINDOWS) |
58 v8SetReturnValue(args, v8::String::NewSymbol("windows")); | 56 v8SetReturnValue(args, v8::String::NewSymbol("windows")); |
59 #else | 57 #else |
60 v8SetReturnValue(args, v8::String::NewSymbol("unknown")); | 58 v8SetReturnValue(args, v8::String::NewSymbol("unknown")); |
61 #endif | 59 #endif |
62 } | 60 } |
63 | 61 |
64 void V8InspectorFrontendHost::portMethodCustom(const v8::FunctionCallbackInfo<v8
::Value>&) | 62 void V8InspectorFrontendHost::portMethodCustom(const v8::FunctionCallbackInfo<v8
::Value>&) |
65 { | 63 { |
66 } | 64 } |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 histogramEnumeration("DevTools.PanelShown", args, 20); | 144 histogramEnumeration("DevTools.PanelShown", args, 20); |
147 } | 145 } |
148 | 146 |
149 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) | 147 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) |
150 { | 148 { |
151 histogramEnumeration("DevTools.SettingChanged", args, 100); | 149 histogramEnumeration("DevTools.SettingChanged", args, 100); |
152 } | 150 } |
153 | 151 |
154 } // namespace WebCore | 152 } // namespace WebCore |
155 | 153 |
OLD | NEW |