public void OnGUI(AnimationWindowState state, AnimationWindowKeyframe keyframe)
 {
   if (keyframe.isPPtrCurve)
     return;
   this.backgroundRect = this.position;
   this.backgroundRect.x = state.TimeToPixel(keyframe.time) + this.position.x - (float) (DopeSheetEditor.DopeSheetPopup.s_width / 2);
   this.backgroundRect.y += 16f;
   this.backgroundRect.width = (float) DopeSheetEditor.DopeSheetPopup.s_width;
   this.backgroundRect.height = (float) DopeSheetEditor.DopeSheetPopup.s_height;
   Rect backgroundRect1 = this.backgroundRect;
   backgroundRect1.height = 16f;
   Rect backgroundRect2 = this.backgroundRect;
   backgroundRect2.y += 16f;
   backgroundRect2.height = (float) DopeSheetEditor.DopeSheetPopup.s_width;
   GUI.Box(this.backgroundRect, string.Empty);
   GUI.Box(backgroundRect2, (Texture) AssetPreview.GetAssetPreview((UnityEngine.Object) keyframe.value));
   EditorGUI.BeginChangeCheck();
   UnityEngine.Object @object = EditorGUI.ObjectField(backgroundRect1, (UnityEngine.Object) keyframe.value, keyframe.curve.m_ValueType, false);
   if (!EditorGUI.EndChangeCheck())
     return;
   keyframe.value = (object) @object;
   state.SaveCurve(keyframe.curve);
 }
 public float TimeToPixel(float time)
 {
     return(state.TimeToPixel(time));
 }