| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 void V8InspectorFrontendHost::showContextMenuMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& args) | 98 void V8InspectorFrontendHost::showContextMenuMethodCustom(const v8::FunctionCall
backInfo<v8::Value>& args) |
| 99 { | 99 { |
| 100 if (args.Length() < 2) | 100 if (args.Length() < 2) |
| 101 return; | 101 return; |
| 102 | 102 |
| 103 v8::Local<v8::Object> eventWrapper = v8::Local<v8::Object>::Cast(args[0]); | 103 v8::Local<v8::Object> eventWrapper = v8::Local<v8::Object>::Cast(args[0]); |
| 104 if (!V8MouseEvent::info.equals(toWrapperTypeInfo(eventWrapper))) | 104 if (!V8MouseEvent::wrapperTypeInfo.equals(toWrapperTypeInfo(eventWrapper))) |
| 105 return; | 105 return; |
| 106 | 106 |
| 107 Event* event = V8Event::toNative(eventWrapper); | 107 Event* event = V8Event::toNative(eventWrapper); |
| 108 if (!args[1]->IsArray()) | 108 if (!args[1]->IsArray()) |
| 109 return; | 109 return; |
| 110 | 110 |
| 111 v8::Local<v8::Array> array = v8::Local<v8::Array>::Cast(args[1]); | 111 v8::Local<v8::Array> array = v8::Local<v8::Array>::Cast(args[1]); |
| 112 ContextMenu menu; | 112 ContextMenu menu; |
| 113 populateContextMenuItems(array, menu); | 113 populateContextMenuItems(array, menu); |
| 114 | 114 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 137 histogramEnumeration("DevTools.PanelShown", args, 20); | 137 histogramEnumeration("DevTools.PanelShown", args, 20); |
| 138 } | 138 } |
| 139 | 139 |
| 140 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) | 140 void V8InspectorFrontendHost::recordSettingChangedMethodCustom(const v8::Functio
nCallbackInfo<v8::Value>& args) |
| 141 { | 141 { |
| 142 histogramEnumeration("DevTools.SettingChanged", args, 100); | 142 histogramEnumeration("DevTools.SettingChanged", args, 100); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace WebCore | 145 } // namespace WebCore |
| 146 | 146 |
| OLD | NEW |